Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Did someone make an error when running lag_indexes method in make_features file #39

Open
timtian12 opened this issue Mar 12, 2021 · 3 comments

Comments

@timtian12
Copy link

KeyError: "Passing list-likes to .loc or [] with any missing labels is no longer supported. The following labels were missing: DatetimeIndex(['2015-04-01', '2015-04-02', '2015-04-03', '2015-04-04',\n '2015-04-05',\n ...\n '2015-06-26', '2015-06-27', '2015-06-28', '2015-06-29',\n '2015-06-30'],\n dtype='datetime64[ns]', length=92, freq=None). See https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#deprecate-loc-reindex-listlike"

@1980695671
Copy link

把.loc[]改成reindex()

@Tovi-A
Copy link

Tovi-A commented May 16, 2021

把.loc[]改成reindex()

别乱回答

@EnriqueGautoSand
Copy link

Done, works just iloc[dates] to reindex(dates)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants