Skip to content

Problem about user-defined time-dependent tilt #2478

Answered by kandersolar
smallduan asked this question in Q&A
Discussion options

You must be logged in to vote

Glad it's working now!

However, I still haven't found out why the indexes were different in the first place.

Did you check the datetime/string thing I mentioned? In my experience, df.to_csv() followed by pd.read_csv() will convert a datetime index into a string index (where the string values look identical to datetimes). Using parse_dates=True in the call to pd.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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@smallduan
Comment options

@kandersolar
Comment options

Answer selected by smallduan
@smallduan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants