valpas.io.import_asssociation_matrix#

valpas.io.import_asssociation_matrix(filepath, sheet=0)#

Imports a saved correlation / association matrix saved by valpas.utils.write_outfile into a pandas.DataFrame object and returns it.

Parameters:
  • filepath ({str, PathLike, Path}) – The path to the file that should be imported

  • sheet (str, default=None) – The sheet name to import the association matrix from if filepath points to an Excel file

Returns:

A pandas DataFrame that contains the association values in the raw data file that was imported.

Return type:

pandas.DataFrame

Notes

Can for example be used to read in data necessary to plot a heatmap via the valpas.visualize.heatmap module.