how to compare dates in csv file using python? i am given csv file: id, name, examination date i23, jack, 23/04/2021 e42
Posted: Sun May 15, 2022 1:13 pm
how to compare dates in csv file using python?
i am given csv file:
id, name, examination date
i23, jack, 23/04/2021
e42, sam, 1/05/2021
y46, lee, 22/04/2021
r50, zac, 2/05/2021
I am trying to print the following from earliest to latest
date. So the output should be lee, 22/04/2021 \n jack, 23/04/2021
\n sam, 1/05/2021 \n zac, 2/05/2021. The csv file is in
string format. (use of dictionary preferred but anything would
do)
i am given csv file:
id, name, examination date
i23, jack, 23/04/2021
e42, sam, 1/05/2021
y46, lee, 22/04/2021
r50, zac, 2/05/2021
I am trying to print the following from earliest to latest
date. So the output should be lee, 22/04/2021 \n jack, 23/04/2021
\n sam, 1/05/2021 \n zac, 2/05/2021. The csv file is in
string format. (use of dictionary preferred but anything would
do)