seismometer.data.cohorts.resolve_col_data

seismometer.data.cohorts.resolve_col_data(df, feature)

Handles resolving feature from either being a series or specifying a series in the dataframe.

Parameters:
  • df (pd.DataFrame) – Containing a column of name feature if feature is passed in as a string.

  • feature (Union[str, pd.Series]) – Either a pandas.Series or a column name in the dataframe.

Return type:

pd.Series.