Check
Check data format
- heatpro.check.check_data_format.find_duplicate_days(datetime_index: DatetimeIndex)[source]
Find and return a DataFrame containing (year, month, day) tuples that appear more than once in the given DatetimeIndex.
- Parameters:
datetime_index – pd.DatetimeIndex
- Returns:
DataFrame with columns ‘Year’, ‘Month’, ‘Day’ representing (year, month, day) tuples with multiple appearances.
- heatpro.check.check_data_format.find_duplicate_hours(datetime_index: DatetimeIndex)[source]
Find and return a DataFrame containing (year, month, day, hour) tuples that appear more than once in the given DatetimeIndex.
- Parameters:
datetime_index – pd.DatetimeIndex
- Returns:
DataFrame with columns ‘Year’, ‘Month’, ‘Day’, ‘Hour’ representing (year, month, day, hour) tuples with multiple appearances.
- heatpro.check.check_data_format.find_duplicate_months(datetime_index: DatetimeIndex)[source]
Find and return a DataFrame containing (year, month) tuples that appear more than once in the given DatetimeIndex.
- Parameters:
datetime_index – pd.DatetimeIndex
- Returns:
DataFrame with columns ‘Year’, ‘Month’ representing (year, month) tuples with multiple appearances.
- heatpro.check.check_data_format.find_xor_dates(df_left: DataFrame, df_right: DataFrame) DataFrame[source]
Find dates that are not in both index
- Parameters:
df_left (pd.DataFrame) – left DataFrame
df_right (pd.DataFrame) – right DataFrame
- Returns:
Dataframe showing of dates that are not in both index
- Return type:
pd.DataFrame
- heatpro.check.check_data_format.find_xor_hour(df_left: DataFrame, df_right: DataFrame) DataFrame[source]
Find hours that are not in both index
- Parameters:
df_left (pd.DataFrame) – left DataFrame
df_right (pd.DataFrame) – right DataFrame
- Returns:
Dataframe showing of hours that are not in both index
- Return type:
pd.DataFrame
- heatpro.check.check_data_format.find_xor_months(df_left: DataFrame, df_right: DataFrame) DataFrame[source]
Find month that are not in both index
- Parameters:
df_left (pd.DataFrame) – left DataFrame
df_right (pd.DataFrame) – right DataFrame
- Returns:
Dataframe showing of month that are not in both index
- Return type:
pd.DataFrame