captest.io.DataLoader.reindex_loaded_files

DataLoader.reindex_loaded_files(verbose=False, report=False)

Reindex files to ensure no missing indices and find frequency for each file.

Parameters:
  • verbose (bool, default False) – Set to True for more detailed output.

  • report (bool, default False) – Set to True AND set verbose to TRUE to show frequency used when reindexing and quantity of intervals added to the index.

Returns:

  • reindexed_dfs (dict) – Filenames mapped to reindexed DataFrames.

  • common_freq (str) – The index frequency most common across the reindexed DataFrames.

  • file_frequencies (list) – The index frequencies for each file.