| 4339 | return uniqs.size |
| 4340 | |
| 4341 | def drop_duplicates( |
| 4342 | self, |
| 4343 | ignore_index=False, |
| 4344 | split_every=None, |
| 4345 | split_out=True, |
| 4346 | shuffle_method=None, |
| 4347 | keep="first", |
| 4348 | ): |
| 4349 | shuffle_method = _get_shuffle_preferring_order(shuffle_method) |
| 4350 | if keep is False: |
| 4351 | raise NotImplementedError("drop_duplicates with keep=False") |
| 4352 | return new_collection( |
| 4353 | DropDuplicates( |
| 4354 | self, |
| 4355 | ignore_index=ignore_index, |
| 4356 | split_out=split_out, |
| 4357 | split_every=split_every, |
| 4358 | shuffle_method=shuffle_method, |
| 4359 | keep=keep, |
| 4360 | ) |
| 4361 | ) |
| 4362 | |
| 4363 | @insert_meta_param_description(pad=12) |
| 4364 | def apply(self, function, *args, meta=no_default, axis=0, **kwargs): |