I am trying to make sub-DataFrames from a larger DataFrame in Dask. I realize that a lot of the tools found in Pandas used to manipulate DataFrames are present in Dask, however the devs are very transparent about what is not.
One such tool is the df.filter()
attribute for DataFrames. I have code that looks like this:
comp2phys = df.filter(FOI[1:], axis=1)
where df
is a DataFrame and FOI
is a list containing the "fieldnames of interest".
I get this error when I try to filter the dataframe (as I explained above, it is not a tool in Dask)
AttributeError: 'DataFrame' object has no attribute 'filter'
Is there a tool in Dask that will allow me to do this? Thanks!
EDIT
As @ayhan pointed out, this equivalent to df[FOI[1:]]