Depots.fetch_1950_system_codes¶
-
Depots.
fetch_1950_system_codes
(update=False, pickle_it=False, data_dir=None, verbose=False)¶ Fetch 1950 system (pre-TOPS) codes from local backup.
- Parameters
update (bool) – whether to do an update check (for the package data), defaults to
False
pickle_it (bool) – whether to save the data as a pickle file, defaults to
False
data_dir (str or None) – name of a folder where the pickle file is to be saved, defaults to
None
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
Example:
>>> from pyrcs.other_assets import Depots >>> depots = Depots() >>> # s1950_dat = depots.fetch_1950_system_codes(update=True, verbose=True) >>> s1950_dat = depots.fetch_1950_system_codes() >>> 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]