elphick.geomet.utils.pandas.cumulate

elphick.geomet.utils.pandas.cumulate(mass_data, direction)[source]

Cumulate along the index

Expected use case is only for Datasets that have been reduced to 1D.

Parameters:
  • mass_data (DataFrame) – The mass data to cumulate - note composition must be represented as mass

  • direction (str) – ‘ascending’|’descending’

Return type:

DataFrame

Returns: