| 4320 | return uniqs.size |
| 4321 | |
| 4322 | def drop_duplicates( |
| 4323 | self, |
| 4324 | ignore_index=False, |
| 4325 | split_every=None, |
| 4326 | split_out=True, |
| 4327 | shuffle_method=None, |
| 4328 | keep="first", |
| 4329 | ): |
| 4330 | shuffle_method = _get_shuffle_preferring_order(shuffle_method) |
| 4331 | if keep is False: |
| 4332 | raise NotImplementedError("drop_duplicates with keep=False") |
| 4333 | return new_collection( |
| 4334 | DropDuplicates( |
| 4335 | self, |
| 4336 | ignore_index=ignore_index, |
| 4337 | split_out=split_out, |
| 4338 | split_every=split_every, |
| 4339 | shuffle_method=shuffle_method, |
| 4340 | keep=keep, |
| 4341 | ) |
| 4342 | ) |
| 4343 | |
| 4344 | @insert_meta_param_description(pad=12) |
| 4345 | def apply(self, function, *args, meta=no_default, axis=0, **kwargs): |