attach_weather#
- popo.network.attach_weather(df, weather_path, columns=None, timestamp_column='timestamp')#
Join weather columns onto a result frame, for use as forecasting inputs.
- Parameters:
df (
DataFrame) – Result frame carrying atimestamp_column, typically the concatenated output of a penetration sweep.weather_path (
Path) – Parquet file carryingtimestamp_columnandcolumns, at any resolution.columns (
list[str] |None) – Weather columns to join; defaults to irradiance and temperature, the two that drive rooftop PV.timestamp_column (
str) – Column carrying the timestamp, present in bothdfand the weather record.
- Return type:
- Returns:
dfwithcolumnsjoined on, forward/backward filled across any gap the interpolation could not close.