dataframe_to_n_dimensional_sparse_array# caf.toolkit.pandas_utils.dataframe_to_n_dimensional_sparse_array(df, dimension_cols, value_col, *, sparse_value_maps=None, warning_action='default', fill_value=0)[source]# Convert a pandas.DataFrame to a sparse.COO matrix. Parameters: df (DataFrame) dimension_cols (dict[Any, list[Any]]) value_col (Any) sparse_value_maps (dict[Any, dict[Any, int]] | None) warning_action (Literal['default', 'error', 'ignore', 'always', 'module', 'once']) fill_value (number | int | float) Return type: tuple[COO, dict[Any, dict[Any, int]]]