Problem about user-defined time-dependent tilt #2478
-
Beta Was this translation helpful? Give feedback.
Answered by
kandersolar
Jun 10, 2025
Replies: 1 comment 3 replies
-
Notice how One thing to be sure of is that the dtype of all indexes is a datetime, and not a string that looks like a datetime. You might need to be using |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Glad it's working now!
Did you check the datetime/string thing I mentioned? In my experience,
df.to_csv()
followed bypd.read_csv()
will convert a datetime index into a string index (where the string values look identical to datetimes). Usingparse_dates=True
in the call topd.read_csv
would fix that.If that's not the problem, you'll have to investigate yourself why the new index and the original index are different. Checking the value and type of
.index[0]
for the two dataframes is where I would start.