caiso_utils#

Module Contents#

Functions#

check_latest_value_time(df, column)

Check if the latest value time is from the previous day and update the date accordingly

make_timestamp(time_str, today[, timezone])

Contents#

gridstatus.caiso.caiso_utils.check_latest_value_time(df: pandas.DataFrame, column: str)[source]#

Check if the latest value time is from the previous day and update the date accordingly

Parameters:
  • df (pd.DataFrame) – DataFrame to check

  • column (str) – Column to check

Returns:

Latest time

Return type:

pd.Timestamp

gridstatus.caiso.caiso_utils.make_timestamp(time_str: str, today: pandas.Timestamp, timezone: str = 'US/Pacific')[source]#