pastas / pastastore

:spaghetti: :convenience_store: Tools for managing timeseries and Pastas models

Home Page:https://pastastore.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error writing pastastore to .zip file

OnnoEbbens opened this issue · comments

When I run the code in this notebook

I get the following error:
ValueError: DataFrame index must be unique for orient='columns'.

when trying to write the pastastore to a .zip file using:
store.to_zip('pastasstore.zip', overwrite=True)

Duplicate timestamps by any chance?

It's because of NaT timestamps in the timeseries.

Calling dropna() when adding the oseries to the pastastore solves the issue.