utils¶
Provides a number of helper functions.
Validate inputs¶
Checks and returns whether the Railway Codes website is reacheable. |
|
|
Checks and returns whether a string represents a float value. |
|
Validates if a string is a single letter, returning it in upper case or as is. |
|
Retrieves the valid page name corresponding to a given page number. |
|
Creates a new parameter that indicates whether to print relevant information to the console. |
|
Creates a new parameter that indicates whether to print relevant information to the console. |
Print messages¶
|
Returns a message for comfirming whether to proceed to collect a certain cluster of data. |
|
Prints a message indicating the status of data collection. |
|
Prints a message if an Internet connection attempt is unsuccessful. |
|
Prints an error message when an instance fails to establish an Internet connection. |
|
Prints a message when the data collection process fails. |
Save and retrieve pre-packed data¶
|
Fetches a dictionary or dataframe to rectify location names. |