Closed
Milestone
expired on Feb 26, 2023
Filtered Data Analysis
Let's filter data by time before saving it. Modify https://gitlab.engr.illinois.edu/r-sowers/ukraine-data/-/blob/main/API_Calls/donetsk_data.ipynb and its sibling API call documents to save only data after 2021-09-24. Something like
date_cutoff="2021-09-24" #about 6 months before war
urlrequest #api call data_original=json.load() #convert to json filteredelements=[element for element in data["elements"] if element["timestamp"]>=date_cutoff] if len(filteredelements)==0: print("no interesting data") #or something data["elements"]=filteredelements json.dump(data)
Loading
Loading
Loading
Loading