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

Method _meta

dask/dataframe/dask_expr/_expr.py:1856–1867  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1854
1855 @functools.cached_property
1856 def _meta(self):
1857 if self.operand("meta") is None:
1858 args = [
1859 meta_nonempty(op._meta) if isinstance(op, Expr) else op
1860 for op in self._args
1861 ]
1862 return make_meta(self.operation(*args, **self._kwargs))
1863 return make_meta(
1864 self.operand("meta"),
1865 parent_meta=self.frame._meta,
1866 index=getattr(self.frame._meta, "index", None), # could be an index
1867 )
1868
1869 @functools.cached_property
1870 def _kwargs(self) -> dict:

Callers

nothing calls this directly

Calls 3

make_metaFunction · 0.90
operandMethod · 0.80
operationMethod · 0.45

Tested by

no test coverage detected