solarforecastarbiter.io.utils.serialize_timeseries¶
-
solarforecastarbiter.io.utils.
serialize_timeseries
(ser)[source]¶ Serialize a timeseries to JSON. Note that the microseconds portion of the index will be discarded.
Parameters: ser ({pandas.Series, pandas.DataFrame}) – Must have a tz-localized datetime index Returns: str – The JSON serialized data along with a schema Raises: TypeError
– If the input is invalid