-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TypeError: Only valid with DatetimeIndex, TimedeltaIndex or PeriodIndex, but got an instance of 'Index' #19352
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
Comments
Please try and make this a reproducible example - very likely |
I had the link to data here https://stackoverflow.com/questions/48389030/pd-read-csv-fails-after-converting-the-timezone |
also @chris-b1 how should it be fixed? |
Guessing - you probably have some kind of embedded line break in your data, try the solution here |
this is not reproducible and better asked on SO. The message is clear, you don't have the proper index. |
I reproduced this, @jreback can you try to solve this. It is with proper index, (TIme Stamp). |
Please have a look
I converted the timezone using this code:
Then I used it in this code:
I get
pandas version 0.20.3 and in CentOS 7.
The text was updated successfully, but these errors were encountered: