Suppose I have a pandas dataframe like:
df=pd.DataFrame({'a':[1,2,3],'b':[4,5,6]})
When I convert it to a dask dataframe, then what should the name and divisions parameter consist of:
from dask import dataframe as dd sd=dd.DataFrame(df.to_dict(),divisions=1,meta=pd.DataFrame(columns=df.columns,index=df.index))
TypeError: init () missing 1 required positional argument: 'name'
Edit : Suppose I created a pandas framework, for example:
pd.DataFrame({'a':[1,2,3],'b':[4,5,6]})
Similarly, how to create a dask dataframe, since it needs three additional arguments like name,divisions and meta .
sd=dd.Dataframe({'a':[1,2,3],'b':[4,5,6]},name=,meta=,divisions=)
Thanks for your reply.