| 410 | return RenameAxis(self, mapper=mapper, index=index, columns=columns, axis=axis) |
| 411 | |
| 412 | def align(self, other, join="outer", axis=None, fill_value=None): |
| 413 | from dask.dataframe.dask_expr._collection import new_collection |
| 414 | |
| 415 | if not are_co_aligned(self, other): |
| 416 | aligned = AlignAlignPartitions(self, other, join, axis, fill_value) |
| 417 | else: |
| 418 | aligned = _Align(self, other, join, axis=axis, fill_value=fill_value) |
| 419 | |
| 420 | return new_collection(AlignGetitem(aligned, position=0)), new_collection( |
| 421 | AlignGetitem(aligned, position=1) |
| 422 | ) |
| 423 | |
| 424 | def nunique_approx(self, split_every=None): |
| 425 | return NuniqueApprox(self, b=16, split_every=split_every) |