mosaicmpi.network.Network.get_representative_program_usage

mosaicmpi.network.Network.get_representative_program_usage#

Network.get_representative_program_usage(correlation_axis: Literal['programs', 'usage'] = 'programs') DataFrame#

Select programs based on correlation with the median of all programs in each community

Parameters:

correlation_axis (int or dict) – axis on which to compute correlations between programs whether correlating the programs or the usages, defaults to “programs”

Returns:

Features × programs matrix

Return type:

pd.DataFrame