marmot.plottingmodules.plotutils.timeseries_modifiers.get_sub_hour_interval_count#
- get_sub_hour_interval_count(df: pandas.core.frame.DataFrame) int [source]#
Detects the interval spacing of timeseries data.
Used to adjust sums of certain variables for sub-hourly data.
- Parameters
df (pd.DataFrame) – pandas dataframe with timestamp in index.
- Returns
Number of intervals per 60 minutes.
- Return type