elphick.geomet.utils.pandas

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

column_prefixes

composition_to_mass

Convert a composition DataFrame to mass

cumulate

Cumulate along the index

mass_to_composition

Convert a mass DataFrame to composition

parse_vars_from_expr

Parse variables from a pandas query expression string.

prepare_columns

weight_average

Weight Average a DataFrame containing mass-composition

Classes

MeanIntervalArray(data[, closed, dtype, ...])

MeanIntervalIndex(data[, mean_values])

MeanIntervalIndex is a subclass of pd.IntervalIndex that calculates the mean of the interval bounds.