solarforecastarbiter.io.utils.json_payload_to_forecast_series

solarforecastarbiter.io.utils.json_payload_to_forecast_series(json_payload)[source]

Convert the JSON payload dict as returned by the SolarForecastArbiter API forecasts/values endpoing into a Series

Parameters:json_payload (dict) – Dictionary as returned by the API with a “values” key which is a list of dicts like {‘timestamp’: <timestamp>, ‘value’: <float>}
Returns:pandas.Series – With a tz-aware DatetimeIndex and float dtype