Depots.fetch_1950_system_codes

Depots.fetch_1950_system_codes(update=False, pickle_it=False, data_dir=None, verbose=False)[source]

Fetch 1950 system (pre-TOPS) codes from local backup.

Parameters
  • update (bool) – whether to check on update and proceed to update the package data, defaults to False

  • pickle_it (bool) – whether to replace the current package data with newly collected data, defaults to False

  • data_dir (str or None) – name of package data folder, defaults to None

  • verbose (bool) – whether to print relevant information in console as the function runs, defaults to False

Returns

data of 1950 system (pre-TOPS) codes and date of when the data was last updated

Return type

dict

Example:

>>> from pyrcs.other_assets import Depots

>>> depots = Depots()

>>> system_1950_codes_dat = depots.fetch_1950_system_codes()

>>> system_1950_codes = system_1950_codes_dat['1950 system (pre-TOPS) codes']

>>> type(system_1950_codes)
<class 'pandas.core.frame.DataFrame'>
>>> print(system_1950_codes.head())
  Code             Depot                                              Notes
0   1A         Willesden               From 1950. Became WN from 6 May 1973
1   1B            Camden                       From 1950. To 3 January 1966
2   1C           Watford               From 1950. Became WJ from 6 May 1973
3   1D  Devons Road, Bow  Previously 13B to 9 June 1950. Became 1J from ...
4   1D        Marylebone  Previously 14F to 31 August 1963. Became ME fr...