pastas / pastastore

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

Don't show timesteps with NaNs in data availability plot #48

Closed martinvonk closed 2 years ago

martinvonk commented 2 years ago

If there are NaNs in the timeseries they count as "available data" in the data availability plot.

For example, the data availability now looks as: dropnafalse Life looks good, there seem to be no gaps in the data. However, that is because the timesteps with no data contain NaNs.

Dropping these NaNs shows a more realistic figure of the actual data availability: dropnatrue

This PR adds the option dropna to the function pastastore.plots.data_availability(). Default is dropna=True.