[Solved] Read CSV file and only keep some lines according to values in list (Python)

[ad_1]

If you only want to check whether a value is in that list, the best time is O(1) for each check. You probably want to use hashset instead of a list. You can google hashset in python to see some example, like this or see this doc, sets.

0

[ad_2]

solved Read CSV file and only keep some lines according to values in list (Python)