pandas read_csv and filter columns with usecols
The solution lies in understanding these two keyword arguments: names is only necessary when there is no header row in your file and you want to specify other arguments (such as usecols) using column names rather than integer indices. usecols is supposed to provide a filter before reading the whole DataFrame into memory; if used … Read more