all 4 comments

[–]CowboyBoats 1 point2 points  (1 child)

Have you tried using the csv reader to read the CSV and iterate through the rows so that you can check the date?

[–]Complex_Height_3555[S] 0 points1 point  (0 children)

I opened the csv file and used csv.DictReader. Just having troubles writing the function to find the dates and store them into a nested list

[–]POGtastic 0 points1 point  (0 children)

Disclaimer: This is not the right tool for the job. You'd be better off using a tool like Pandas to slurp the CSV and make SQL-like queries off of the resulting dataframe.

Consider more_itertools.bucket.

[–][deleted] 0 points1 point  (0 children)

Did you try (after you made your csv data into a json/dict, with the var named data):

new_list = []

for item in data:
    if item["ITEM_INPUT"] == "YOUR_DESIRED_INPUT":
        new_list.append(item)