I'm trying to experiment with the covid-19 data from John Hopkins as a way of learning some basic Mathematica functionality. I pulled down the CSV files and figured out how to convert them to datasets and then extra particular rows, etc. I ended up with a small chunk of data covering part of January and February. If I use DateListPlot on the first portion of that data, just covering January, it works fine. However, if I increase the length of the data by just 1 such that the first date of February is included, I get the following error:
DateListPlot::ldata: <|1/22/20->2,1/23/20->1,1/24/20->2,1/25/20->2,1/26/20->4,1/27/20->4,1/28/20->7,1/29/20->7,1/30/20->11,1/31/20->15,2/1/20->20|> is not a valid dataset or list of datasets.
I have no idea why adding the first date of the next month produces this error and would appreciate any insights.
Thanks in advance
Here is what I did
1) Pulled down the data from Github (https://github.com/CSSEGISandData/COVID-19.git)
Then in a Notebook:
confirmed = Import["/Volumes/HD2/Github/COVID-19/csse_covid_19_data/csse_covid_\19_time_series/time_series_19-covid-Confirmed.csv", "Dataset", "HeaderLines" -> 1];
(* See first image -- the plot works when the range goes from 5 to 14 but as soon as I change the end index from 14 to 15, the plot fails even though the list data displays correctly *)