merge_series_values

pylluminator.utils.merge_series_values(items: Series, how: str = 'any')

Merge the values of a series into a single value. Ignores all NaN. If the series contains strings, return a list of unique strings. If the series contains numbers, return the mean. If the series contains booleans, return the result of the operation specified by the how parameter. Default is ‘any’

Parameters:
  • items (pandas.Series) – input series

  • how (str) – operation to apply on boolean series. ‘any’ or ‘all’. Default: ‘any’