I am working on following csv file in python:
item,date,price($)
milk,11/10/2021, 2
milk, 11/11/2021, 2
milk, 11/01/2022, 2.3
egg,09/10/2021, 3
egg, 09/11/2021, 3.4
egg, 09/01/2022, 3.3
.... so on
How do I display the date when item was at it's highest
price. Example item: milk, highest price date: 11/01/2022,
highest price: $2.3 \n item: egg, price peak date: 09/11/2021,
highest price: $3.4.
use of dictionary preferred.
I am working on following csv file in python: item,date,price($) milk,11/10/2021, 2 milk, 11/11/2021, 2 milk, 11/01/2022
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am