pvdeg.utilities.add_time_columns_tmy#
- pvdeg.utilities.add_time_columns_tmy(weather_df, coerce_year=1979)[source]#
Add time columns to a tmy weather dataframe.
- Parameters:
weather_df (pd.DataFrame) – tmy weather dataframe containing 8760 rows.
coerce_year (int) – year to set the dataframe to.
- Returns:
weather_df (pd.DataFrame) – dataframe with columns added new columns will be
'Year', 'Month', 'Day', 'Hour', 'Minute'