data.get_data¶
Functions
get_url_data ([filename, url, force_download]) |
Download and cache data from publisher. |
-
data.get_data.
get_url_data
(filename='data/raw/Crime_Data_from_2010_to_Present.csv', url='https://data.cityofchicago.org/api/views/ijzp-q8t2/rows.csv?accessType=DOWNLOAD', force_download=False)[source]¶ Download and cache data from publisher.
Verifies that data exists on local machine. If not, then downloads data. Can be forced to download with parameter force_downloader.
Parameters: - filename (string (optional)) – location to save the data
- url (string (optional)) – web location of the data
- force_download (bool (optional)) – if TRUE, then force data download
Returns: data – The downloaded data as dataframe.
Return type: pandas.DataFrame