seismometer.data.cohorts.resolve_cohorts¶
- seismometer.data.cohorts.resolve_cohorts(series, splits=None)¶
Bin a series of data based on the defined splits if defined. Only handles numeric and categorical data.
- Parameters:
series (SeriesOrArray) – pandas series of data to bin.
splits (Optional[List], optional) – List of splits to define inner bins (default: None).
- Returns:
Categorical series with labels.
- Return type:
pd.Series