'Reading CSV files into Dask DataFrames using usecols

I am reading CSV file in dask but while reading, I want to "usecols" as we use in panads.

What I am currently using for DASK,

df = dd.read_csv('myfiles.csv')  #in dask

I want to use like this as we can do in pandas,

df = pd.read_csv('myfiles.csv',usecols=["date", "loc", "x"])


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source