I am trying to save some data in csv file using a function called "save_dataset" from a library named "orkg" and based on Python.
In the dataset, I have to save some Date values, the python compiler doesn't accept the separtor which is a point (.) between the month and year and shows me a syntax error: SyntaxError: invalid syntax This is the code I used:
datasetID = orkg.resources.save_dataset(file="data.csv", label=["cc_variant", "Date","NEE"], dimensions=[
(Fallow, 18.10.2016, 5231861), (Fallow, 19.10.2016, 3675274), (Fallow, 24.10.2016, 3459082), (Mix4, 18.10.2016, -51686837),
(Mix12, 18.10.2016, -61711000), (Mustard, 18.10.2016, -18224568), (Mix4, 19.10.2016, -10263776),
(Mix12, 19.10.2016, -43155887), (Mustard, 19.10.2016, -13904121), (Mustard, 24.10.2016, -11409939),
(Mix12, 24.10.2016, -40021260), (Mix4, 24.10.2016, -17533208)]
])
I am not sure if the import of panda library is necessary or shall I change the format of date ?
18.10.2016to be? A float? A string? A tuple? A datetime.date, or datetime.datetime? - MisterMiyagi