Representativereperiods class

class reperiods.representative_periods.RepresentativePeriods(data: DataFrame, weight: float)[source]

Bases: object

Represents a single representative period with associated data and weight.

Parameters:
  • data (pd.DataFrame) – The data associated with the representative period.

  • weight (float) – The weight of the representative period (between 0 and 1).

Raises:

ValueError – If input data is not a DataFrame from pandas, if the index of the DataFrame is not a DatetimeIndex, or if the weight is not a float between 0 and 1.