| 4374 | return uniqs.size |
| 4375 | |
| 4376 | def drop_duplicates( |
| 4377 | self, |
| 4378 | ignore_index=False, |
| 4379 | split_every=None, |
| 4380 | split_out=True, |
| 4381 | shuffle_method=None, |
| 4382 | keep="first", |
| 4383 | ): |
| 4384 | shuffle_method = _get_shuffle_preferring_order(shuffle_method) |
| 4385 | if keep is False: |
| 4386 | raise NotImplementedError("drop_duplicates with keep=False") |
| 4387 | return new_collection( |
| 4388 | DropDuplicates( |
| 4389 | self, |
| 4390 | ignore_index=ignore_index, |
| 4391 | split_out=split_out, |
| 4392 | split_every=split_every, |
| 4393 | shuffle_method=shuffle_method, |
| 4394 | keep=keep, |
| 4395 | ) |
| 4396 | ) |
| 4397 | |
| 4398 | @insert_meta_param_description(pad=12) |
| 4399 | def apply(self, function, *args, meta=no_default, axis=0, **kwargs): |