coffeine.power_features.make_coffeine_data_frame#

coffeine.power_features.make_coffeine_data_frame(C: ndarray, names: dict[str, tuple[float, float]] | list[str] | tuple[str] | None = None) DataFrame#

Put covariances in coffeine Data Frame.

Parameters:
Cnp.ndarray, shape(n_obs, n_frequencies, n_channels, n_channels)

A 2D collection of symmetric matrices. First dimension: samples. Second dimension: batches within observations (e.g. frequencies).

namesdict or list-like, defaults to None

A descriptor for the second dimension of C. It is used to make the columns of the coffeine Data Frame

Returns:
C_dfpd.DataFrame

The DataFrame of object type with lists of covariances accessible as columns.