lib

lib.check_variable_list_are_valid(variable_type_dict)

Checks that the provided variable_type_dict is valid, by:

  • Confirming there is no overlap between all variable lists
Parameters:variable_type_dict ({str:[str]}) – A dictionary, with keys describing variables types, and values listing particular variables
Returns:True, if there is no overlap
Return type:bool
lib.download_file(url, local_file_path, filename)

Download the file at url in chunks, to the location at local_file_path

Parameters:
  • url (str) – URL to a file to be downloaded
  • local_file_path (str) – Path to download the file to
Returns:

The path to the file on the local machine (same as input local_file_path)

Return type:

str

lib.load_mushrooms()

Load the mushrooms data set, as a pandas DataFrame

Returns:A DataFrame, containing the mushroom dataset
Return type:pandas.DataFrame
lib.load_titanic()

Load the titanic data set, as a pandas DataFrame

Returns:A DataFrame, containing the titanic dataset
Return type:pandas.DataFrame