renewenergy.reading_data

Module Contents

Functions

reading_data(url, data_file, data_path, file_name)

Read a specified data file in from a URL containing a zip file.

renewenergy.reading_data.reading_data(url, data_file, data_path, file_name)[source]

Read a specified data file in from a URL containing a zip file.

Parameters:
  • url (str) – URL of link containing zip file.

  • data_file (str) – Specified file in .ZIP that data is to be extracted from.

  • data_path (str) – Directory to which the imported data should be saved to.

  • file_name (str) – Name of file that imported data will be saved to.

Returns:

CSV file that data is saved to.

Return type:

file_name.csv

Examples

>>> reading_datain("url", "WDICSV.csv", "data/raw", "downloaded_data.csv" )