Trips Data Gatherer

class DataGatherer(output_path, structured_dataset_name)

Class for automatically downloading data relating to the New York Citi bike sharing operator from a remote database.

Parameters
  • output_path (str) – path in which to store the file

  • structured_dataset_name

bulk_download(standardize=False)

download all the datasets available at official citi bike website :param standardize: :type standardize: bool, optional :return:

download_data(year, month)

Download data for a specific month and year.

Parameters
  • year (int) – year expressed as a four-digit number (e.g. 1999)

  • month (int) – month expressed as a number (e.g. for November the method expects to receive 11)

Returns

nothing

structured_dataset_name

get from official website the lists of all downloadable csvs dataset_names[yyyymm] = dataset_name_to_attach_to_root_url