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

Cannot join tz-naive with tz-aware DatetimeIndex #5

Open
niranam28ja opened this issue Oct 3, 2024 · 1 comment
Open

Cannot join tz-naive with tz-aware DatetimeIndex #5

niranam28ja opened this issue Oct 3, 2024 · 1 comment

Comments

@niranam28ja
Copy link

niranam28ja commented Oct 3, 2024

in part of factor_data to join data i got some error it's said "Cannot join tz-naive with tz-aware DatetimeIndex" i still do everything to solve this,but it's not complete can someone help me for this please. @Luchkata
Screenshot 2024-10-03 181121

@mrdivakaruni
Copy link

I fixed the issue by adding this line in the first cell:
df.index = df.index.set_levels(df.index.levels[0].tz_localize(None), level=0)

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

2 participants