Update time_reduction.py
change month to Rep_Period_Index
@@ -216,11 +216,11 @@ def kmeans_time_clustering(
time_series_mapping = time_series_mapping.reset_index(drop=True)
# extract month corresponding to each time slot
- time_series_mapping["Month"] = 0
+ time_series_mapping["Rep_Period_Index"] = 0
for Period_Index in time_series_mapping["Period_Index"]:
dayOfYear = days_in_group * Period_Index
d = datetime.datetime.strptime("{} {}".format(dayOfYear, 2011), "%j %Y")
- time_series_mapping["Month"][Period_Index - 1] = d.month
+ time_series_mapping["Rep_Period_Index"][Period_Index - 1] = d.month
# Storing selected groupings in a new data frame with appropriate dimensions
# (E.g. load in GW)
