MCPcopy Create free account
hub / github.com/dask/dask / dtype_info

Function dtype_info

dask/dataframe/partitionquantiles.py:470–475  ·  view source on GitHub ↗
(df)

Source from the content-addressed store, hash-verified

468
469
470def dtype_info(df):
471 info = None
472 if isinstance(df.dtype, pd.CategoricalDtype):
473 data = df.values
474 info = (data.categories, data.ordered)
475 return df.dtype, info

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected