Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
data between dates
#1
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
Reply
#2
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.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020