Commit 4f6433f7 authored by Mickaël's avatar Mickaël
Browse files

Update to_datetime with dayfirst=True + update clean_data_p2.csv + add...

Update to_datetime with dayfirst=True + update clean_data_p2.csv + add original Foteini notebook (to modify)
parent 8212c45a
This diff is collapsed.
......@@ -487,11 +487,11 @@
If the plot appeared, then probably the x-axis looks crappy, with superimposed dates.
This signals that the date-times are not recognized as such, which you can check by printing `dfc.index` (it should be of dtype `object`)
You need to use `pd.to_datetime` to convert it to a proper time format. Attention: for really long files, this operation can be quite slow. it can be accelerated by specifying the format of your dates (should not be necesary here)
You need to use `pd.to_datetime` to convert it to a proper time format. Attention: for really long files, this operation can be quite slow. It can be accelerated by specifying the format of your dates (should not be necesary here), but pay attention to the date format, which is not in the classical datetime order `year-month-day`, look at the `dayfirst` option (https://pandas.pydata.org/docs/reference/api/pandas.to_datetime.html).
**modify the following cell to get that done**
......
......@@ -49,3 +49,6 @@ you should now have all that is needed for sesson 2!
open it, and start working (ERCA_intro-data_p2_groupby-resample.ipynb) !
# session 3
`aasqa_regression_Foteini.ipynb`
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment