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

Method operation

dask/dataframe/dask_expr/_expr.py:1442–1445  ·  view source on GitHub ↗
(df, index, sorted_index)

Source from the content-addressed store, hash-verified

1440
1441 @staticmethod
1442 def operation(df, index, sorted_index):
1443 if is_series_like(df):
1444 return df.rename(index=index)
1445 return df.rename(name=index)
1446
1447 def _divisions(self):
1448 index = self.operand("index")

Callers 1

_metaMethod · 0.95

Calls 2

is_series_likeFunction · 0.85
renameMethod · 0.45

Tested by

no test coverage detected