autofunc.counter_pandas

This counts instances of function-flow combinations per component to find the frequency of each combination by dividing it by all of the combinations for each component (# of occurrences / total occurrences).

Module Contents

Functions

counter_pandas(dataframe)

Counts instances and sorts them by frequency

autofunc.counter_pandas.counter_pandas(dataframe)

Counts instances and sorts them by frequency

Parameters

dataframe (Pandas dataframe) – A Pandas dataframe with the product information

Returns

Returns a dictionary of function and flow combinations sorted by frequency. The key is the component and the value is a list of the structure: [function-flow, frequency]

Return type

comb_sort