You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an IntervalIndex is written to a plain-text format (csv or with to_string()) the output is well-formatted. If I now reload that CSV file, the IntervalIndex is now recreated as a series / index of strings.
A useful feature would be to convert that string index back into an IntervalIndex. This could potentially be done automatically in the read_csv and read_table methods.
When an IntervalIndex is written to a plain-text format (csv or with
to_string()
) the output is well-formatted. If I now reload that CSV file, the IntervalIndex is now recreated as a series / index of strings.A useful feature would be to convert that string index back into an IntervalIndex. This could potentially be done automatically in the
read_csv
andread_table
methods.I've implemented such a function into my own code and extracted it to this gist:
https://gist.github.com/benkrikler/cfa0f3703358d5bd7b5abd5fae36db29
I'd need some guidance, but I'd be happy to try turning this into a PR if it were wanted.
The text was updated successfully, but these errors were encountered: