data_utils.load_compressor_data

data_utils.load_compressor_data()

Loads the normalized compressor datasets X and Z.

This function reads df_x_normalized.csv and df_z_normalized.csv from the spotdesirability.datasets module and returns them as pandas DataFrames. The datasets represent the values of \(X\) and \(Z\) respectively.

Returns

Name Type Description
pd.DataFrame Tuple[pd.DataFrame, pd.DataFrame]: A tuple containing the datasets X and Z
pd.DataFrame as pandas DataFrames respectively.

Raises

Name Type Description
FileNotFoundError If the datasets cannot be found.
RuntimeError If there is an issue reading the CSV data.

Example

import spotdesirability.data_utils as du

df_x, df_z = du.load_compressor_data()