pastas / pastastore

:spaghetti: :convenience_store: Tools for managing timeseries and Pastas models
https://pastastore.readthedocs.io
MIT License
15 stars 4 forks source link

PasConnector returns Series and maintains series dtype #124

Closed dbrakenhoff closed 2 months ago

dbrakenhoff commented 2 months ago

When loading a time series from disk using PasConnector as database, the dtype would sometimes be returned as int instead of float (which is what was stored initially). This has been fixed wit this PR.

Additionally, PasConnector does not support maintaining type for Series or DataFrames. You can store both, but now the loading behavior has changed. Before PasConnector would always return a pandas.DataFrame with a single column. Now it will only return a pandas.Series. This makes more sense as that is also what Pastas prefers.

Fixes #119