pandaspgs.get_cohort

get_cohorts

get_cohorts(
    cohort_symbol: str = None,
    cached: bool = True,
    mode: str = "Fat",
) -> Cohort

Get Cohort data from the server.

Parameters:
  • cohort_symbol (str, default: None ) –

    Short name of a cohort

  • cached (bool, default: True ) –

    Whether or not to try to get data from the cache.

  • mode (str, default: 'Fat' ) –

    Fat or Thin. Specifies the mode of the returned object.

Returns:
  • Cohort

    A Cohort object. Attributes of type DataFrame have hierarchical dependencies.

from pandaspgs.get_cohort import get_cohorts

ch = get_cohorts(cohort_symbol='ABCFS')