how to compare dates in csv file using python? i am given csv file: id, name, examination date i23, jack, 23/04/2021 e42

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

how to compare dates in csv file using python? i am given csv file: id, name, examination date i23, jack, 23/04/2021 e42

Post by answerhappygod »

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)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply