I have a huge csv file and I want to load only a small subset of the columns with fread()
. In pandas read_csv()
, I'd use the usecols
argument for this and pass a list of desired columns.
How do I do this with a datatable? The documentation hints at the columns
argument to fread()
, but when I try this, it looks like that argument is for renaming the columns (similar as pandas header=0, names=[]
arguments). The fread examples also give the same hint.