pastas.io.pas.PastasEncoder#

class pastas.io.pas.PastasEncoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)#

Enhanced encoder to deal with the pandas formats used throughout Pastas.

Notes

Currently supported formats are: DataFrame, Series, Timedelta, Timestamps.

see: https://docs.python.org/3/library/json.html

Methods#

default(o)

Implement this method in a subclass such that it returns