Python Forum
Information how pandas works
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Information how pandas works
#2
The read_csv() function will read the full file, yes. It returns a DataFrame object which has a method called query(), which returns a new DataFrame. With query(), you can abbreviate your DataFrame down to only those rows that satisfy the query expression.

Here's a short blog about using dates to filter data in Pandas: https://erikrood.com/Python_References/s...final.html

You'll need a few lines at the top to determine your date range and then cut your DataFrame down to size.
Reply


Messages In This Thread
Information how pandas works - by gehrenfeld - Feb-04-2019, 09:59 PM
RE: Information how pandas works - by stullis - Feb-05-2019, 02:38 AM
RE: Information how pandas works - by scidam - Feb-05-2019, 11:30 AM
RE: Information how pandas works - by gehrenfeld - Feb-05-2019, 12:29 PM
RE: Information how pandas works - by scidam - Feb-06-2019, 12:22 AM
RE: Information how pandas works - by gehrenfeld - Feb-06-2019, 01:00 PM
RE: Information how pandas works - by scidam - Feb-07-2019, 12:41 AM
RE: Information how pandas works - by gehrenfeld - Feb-07-2019, 12:51 PM
RE: Information how pandas works - by scidam - Feb-07-2019, 11:44 PM
RE: Information how pandas works - by gehrenfeld - Feb-08-2019, 01:09 PM
RE: Information how pandas works - by scidam - Feb-09-2019, 11:25 AM
RE: Information how pandas works - by gehrenfeld - Feb-09-2019, 12:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How do I convert my data so it works with Pandas? Oliver 0 2,462 Dec-11-2017, 04:09 PM
Last Post: Oliver

Forum Jump:

User Panel Messages

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