reichlab / zoltr

http://reichlab.io/zoltr/
GNU General Public License v3.0
2 stars 4 forks source link

add function to convert from standard csv to json format for forecast upload #41

Open nickreich opened 1 year ago

nickreich commented 1 year ago

This page in documentation makes it seem that we should support the upload of a file provided in CSV. Can we add a simple helper function to take a csv file and convert to the necessary JSON format for upload? https://docs.zoltardata.com/fileformats/#forecast-data-format-csv

matthewcornell commented 1 year ago

Is this what you're after?: http://reichlab.io/zoltr/reference/forecast_data_from_cdc_csv_file.html

Loads and converts a CDC CSV file to Zoltar's native list format

forecast_data_from_cdc_csv_file(season_start_year, cdc_csv_file)