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

Class MemoryUsagePerPartition

dask/dataframe/dask_expr/_expr.py:1312–1323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1310
1311
1312class MemoryUsagePerPartition(Blockwise):
1313 _parameters = ["frame", "index", "deep"]
1314 _defaults = {"index": True, "deep": False}
1315
1316 @staticmethod
1317 def operation(*args, **kwargs):
1318 if is_series_like(args[0]):
1319 return args[0]._constructor([total_mem_usage(*args, **kwargs)])
1320 return args[0]._constructor_sliced([total_mem_usage(*args, **kwargs)])
1321
1322 def _divisions(self):
1323 return (None,) * (self.frame.npartitions + 1)
1324
1325
1326class DropDuplicatesBlockwise(Blockwise):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected