Skip to content

Detaset helpers

krisi.analyse.dataset

check_consistency

check_consistency(df: pd.DataFrame, title: str = '', time_delta: pd.Timedelta = pd.Timedelta('00:60:00'))

Prints a summary on:

  • the number of NaNs
  • the frequency of the dataset
  • if there are irregular gaps within the indexes.

Parameters:

Name Type Description Default
df DataFrame

DataFrame that we would like to check the inconsistency of.

required
title str

Title of the report

''
time_delta Timedelta

The size of gaps within indexes, to check irregular indexes.

Timedelta('00:60:00')