Electrification.get_independent_lines_catalogue¶
- Electrification.get_independent_lines_catalogue(update=False, verbose=False)[source]¶
Get the catalogue for the independent lines.
This method retrieves the names and features of independent lines from the local cache or the web page.
- Parameters:
update (bool) – Whether to check for updates to the package data. Defaults to
False.verbose (bool | int) – Whether to print relevant information to the console. Defaults to
False.
- Returns:
A pandas DataFrame containing the names of independent lines, or
Noneif the target URL cannot be resolved.- Return type:
pandas.DataFrame | None
Examples:
>>> from pyrcs.line_data import Electrification # from pyrcs import Electrification >>> elec = Electrification() >>> indep_line_cat = elec.get_independent_lines_catalogue() >>> indep_line_cat.shape (24, 3) >>> indep_line_cat.head() feature ... heading 0 Beamish Tramway ... Beamish Tramway 1 Birkenhead Tramway ... Birkenhead Tramway 2 Black Country Living Museum ... Black Country Living Mu... 3 Blackpool Tramway ... Blackpool Tramway 4 Brighton and Rottingdean Seashore Electric Rai... ... Brighton and Rottingdea... [5 rows x 3 columns]