elphick.mass_composition.utils.pd_utils

Pandas utils

Functions

calculate_partition

Calculate the partition curve from two streams

calculate_recovery

Calculate recovery of mass-composition for two DataFrames

column_prefix_counts

rtype:

Dict[str, int]

column_prefixes

rtype:

Dict[str, List[str]]

composition_to_mass

Convert a composition Dataframe to mass

mass_to_composition

Convert a mass DataFrame to composition

weight_average

Weight Average a DataFrame containing mass-composition