Python Forum

Full Version: data between dates
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I haver a CSV:

01/03/2018, banana
04/03/2018, maçã
05/04/2018, pêra
07/04/2018, uva
10/05/2018, laranja

How do I browse the file and get the data contained between 03/01/2018 to 05/04/2018
One way:
Open the file, read line by line, parse it and based on the date filter lines you need

Another way:
read file with pandas into dataframe, then filter it.