solarforecastarbiter.plotting.utils.align_index(df, interval_length, limit=None)[source]

Align the index to the specified interval_length inserting NaNs as appropriate.

  • df (pandas.DataFrame or pandas.Series) – Pandas object with a datetime index that will be reindexed
  • interval_length (pd.Timedelta) – Interval to conform input index to
  • limit (pd.Timedelta, default None) – Restricts the output index to end - limit:end

pandas.DataFrame or pandas.Series – Same type as input df with an index with frequency interval_length