Depots.collect_1950_system_codes

Depots.collect_1950_system_codes(confirmation_required=True, verbose=False)

Collect 1950 system (pre-TOPS) codes from source web page.

Parameters
  • confirmation_required (bool) – whether to confirm before proceeding, defaults to True

  • verbose (bool or int) – whether to print relevant information in console, defaults to False

Returns

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

Return type

dict or None

Example:

>>> from pyrcs.other_assets import Depots

>>> depots = Depots()

>>> s1950_dat = depots.collect_1950_system_codes()
To collect data of 1950 system (pre-TOPS) codes? [No]|Yes: yes

>>> type(s1950_dat)
dict
>>> list(s1950_dat.keys())
['1950 system (pre-TOPS) codes', 'Last updated date']

>>> print(depots.S1950Key)
1950 system (pre-TOPS) codes

>>> s1950_codes = s1950_dat[depots.S1950Key]

>>> type(s1950_codes)
pandas.core.frame.DataFrame
>>> s1950_codes.head()
  Code click to sort  ...                                              Notes
0                 1A  ...               From 1950. Became WN from 6 May 1973
1                 1B  ...                       From 1950. To 3 January 1966
2                 1C  ...               From 1950. Became WJ from 6 May 1973
3                 1D  ...  Previously 13B to 9 June 1950. Became 1J from ...
4                 1D  ...  Previously 14F to 31 August 1963. Became ME fr...
[5 rows x 3 columns]