Feb-05-2019, 02:38 AM
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.
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.