pypmi.load_demographics

pypmi.load_demographics(path: str = None, measures: List[str] = None) → pandas.core.frame.DataFrame[source]

Loads demographic data into tidy dataframe

Parameters:
  • path (str, optional) – Filepath to directory containing PPMI data files. If not specified this function will, in order, look (1) for an environmental variable $PPMI_PATH and (2) in the current directory. Default: None
  • measures (list, optional) – Which measures to keep in the final dataframe. If not specified all measures are retained; available demographics measures can be viewed with pypmi.available_demographics(). Default: None
Returns:

demographics – Tidy data frame containing demographic information for PPMI subjects

Return type:

pandas.DataFrame