This section lists all the read methods that are available in Pastas to import time series and the input/output methods to store and load Pastas models.
Method to load a Pastas Model from file.
While Pastas provides a few basic methods for reading time series data, we
highly recommend using the Pandas read methods to load your time series. Pastas expects
pandas.Series with a
using Pandas is generally a good idea, for example:
import pandas as pd ts = pd.read_csv("your_file.csv", parse_dates=True, infer_datetime_format=True).squeeze()