watex.methods.hydro.HData.squeeze_data#

HData.squeeze_data(strategy='average', **rs_kws)[source]#

Compressed data by sample reducing

To compress many boreholes data, it is recommended to use get_unique_section().

Parameters:
  • sname (str, optional) – Name of column in the dataframe that contains the strata values. Dont confuse ‘sname’ with ‘stratum’ which is the name of the valid layer/rock in the array/Series of strata.

  • strategy (str , default='average' or 'mean',) – strategy used to select or compute the numerical data into a singular series. It can be [‘naive’]. In that case , a single serie if randomly picked up into the base strata data.

  • rs_kws (dict,) – keyword arguments passed to reduce_samples()

Returns:

sqdat – new dataframe with reducing samples.

Return type:

pandas.dataframes