fsds_100719 package¶
Subpackages¶
Submodules¶
fsds_100719.datasets module¶
A collection of convenient csv urls and sklearn datasets as dataframes.
-
fsds_100719.datasets.
load_height_weight
(verbose=False, read_csv_kwds={})[source]¶ Loads height vs weight dataset
-
fsds_100719.datasets.
load_ts_mintemp
(verbose=False, read_csv_kwds={})[source]¶ Loads min_temp.csv from
-
fsds_100719.datasets.
load_ts_nyse_monthly
(verbose=False, read_csv_kwds={})[source]¶ Loads NYSE_.csv from
-
fsds_100719.datasets.
read_csv_from_url
(url, verbose=False, read_csv_kwds={})[source]¶ Loading function to load all .csv datasets. Args:
url (str): csv raw link verbose (bool): Controls display of loading message and .head() read_csv_kwds (dict): dict of commands to feed to pd.read_csv()- Returns:
- df (DataFrame): the dataset(
fsds_100719.imports module¶
Convience module. ‘from bs_ds.imports import *’ will pre-load pd,np,plt,mpl,sns
-
fsds_100719.imports.
global_imports
(modulename, shortname=None, asfunction=False)[source]¶ from stackoverflow: https://stackoverflow.com/questions/11990556/how-to-make-global-imports-from-a-function, https://stackoverflow.com/a/46878490
-
fsds_100719.imports.
import_packages
(import_list_of_tuples=None, display_table=True)[source]¶ Uses the exec function to load in a list of tuples with: [(‘module’,’md’,’example generic tuple item’)] formatting. >> Default imports_list: [(‘pandas’, ‘pd’, ‘High performance data structures and tools’), (‘numpy’, ‘np’, ‘scientific computing with Python’), (‘matplotlib’, ‘mpl’, “Matplotlib’s base OOP module with formatting artists”), (‘matplotlib.pyplot’, ‘plt’, “Matplotlib’s matlab-like plotting module”), (‘seaborn’, ‘sns’, “High-level data visualization library based on matplotlib”), (‘IPython.display’,’dp’,’Display modules with helpful display and clearing commands.’) (‘fsds_10072019’,’fs’,’Custom data science bootcamp student package’)]
fsds_100719.learn_scrape module¶
-
fsds_100719.learn_scrape.
cohort_driver_to_csv
(driver, output_file='cohort_output.csv', debug=False, load=False, load_kws=None)[source]¶ Exports the table content inside of the driver.page_source to csv file.
- Args:
- driver (WebDriver): cohort instruct page’s driver output_file (str): name of csv file to save.
TO DO: Add link extraction
-
fsds_100719.learn_scrape.
github_login
(driver, login_data=None)[source]¶ Logs into GitHub Account (for instruction.learn) url = ‘https://instruction.learn.co/staff/students’
fsds_100719.quick_refs module¶
A collection of functions containing convenient links to documentation and other resources.
-
fsds_100719.quick_refs.
cohort_links
(md=False, ret=False)[source]¶ Displays quick reference url links and info.
-
fsds_100719.quick_refs.
matplotlib_links
()[source]¶ Display links to matplotlib documentation and references.