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

Method _meta

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

Source from the content-addressed store, hash-verified

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