import pandas as pd
fc = pd.read_csv("data/forecast_for_supply.csv")
print("Forecast week range:")
print(fc.groupby(["year", "week"]).size().describe())
print()
print("Min/max:")
print(f"  Min: {fc['year'].min()}/{fc['week'].min()}")
print(f"  Max: {fc['year'].max()}/{fc['week'].max()}")
print()
print("First 5 and last 5 (year, week) groups:")
yw_groups = fc.groupby(["year", "week"]).size().reset_index()
print(yw_groups.head(5))
print("...")
print(yw_groups.tail(5))
print()
print(f"Total unique (year, week) pairs: {len(yw_groups)}")
