pyabc2.sources.the_session.load_meta

pyabc2.sources.the_session.load_meta(which, *, convert_dtypes=False, downcast_ints=False, format='json')

Load data from The Session archive (https://github.com/adactio/TheSession-data) as a dataframe (requires pandas).

Parameters:
  • which ({'aliases', 'events', 'recordings', 'sessions', 'sets', 'tune_popularity', 'tunes'}) – Which dataset to load.

  • convert_dtypes (bool) – If True, convert dtypes to pandas extension types (e.g. nullable integers, categorical strings). If False (default), keep the original dtypes.

  • downcast_ints (bool) – If True (not default), downcast integer columns to the smallest possible integer dtype.

  • format (Literal['json', 'csv'])

Return type:

pandas.DataFrame

Notes

In string columns (dtype object), missing value is '' (empty string) and is currently left that way by default. However, if convert_dtypes=True is used, this will be set to null, and dtypes converted to nullable pandas extension types (pandas.DataFrame.convert_dtypes() applied).

Data locations:

@adactio (Jeremy) is the creator of The Session.

See also

Tune sources