#NEWLINE# @ convert . register ( dd . DataFrame , pd . DataFrame , cost = 1.0 ) #NEWLINE# def pandas_dataframe_to_dask_dataframe( x , npartitions = None , **kwargs ) : #NEWLINE# #INDENT# if ( npartitions is None ) : #NEWLINE# #INDENT# raise ValueError ( 'npartitions cannot be None' ) #NEWLINE# #UNINDENT# return dd . from_pandas ( x , npartitions = npartitions , ** filter_kwargs ( dd . from_pandas , kwargs ) )