dask.dataframe.utils.make_meta
dask.dataframe.utils.make_meta¶
- dask.dataframe.utils.make_meta(x, index=None, parent_meta=None)[source]¶
This method creates meta-data based on the type of
x
, andparent_meta
if supplied.- Parameters
- xObject of any type.
Object to construct meta-data from.
- indexIndex, optional
Any index to use in the metadata. This is a pass-through parameter to dispatches registered.
- parent_metaObject, default None
If
x
is of arbitrary types and thus Dask cannot determine which back-end to be used to generate the meta-data for this object type, in which caseparent_meta
will be used to determine which back-end to select and dispatch to. To use utilize this parametermake_meta_obj
has be dispatched. Ifparent_meta
isNone
, a pandas DataFrame is used forparent_meta
thats chooses pandas as the backend.
- Returns
- A valid meta-data