Skip to content

Commit 68e6e13

Browse files
committed
set is part of Iterable[Hashable]
1 parent e43ca96 commit 68e6e13

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

doc/source/whatsnew/v3.0.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Other enhancements
5151
- :meth:`Series.cummin` and :meth:`Series.cummax` now supports :class:`CategoricalDtype` (:issue:`52335`)
5252
- :meth:`Series.plot` now correctly handle the ``ylabel`` parameter for pie charts, allowing for explicit control over the y-axis label (:issue:`58239`)
5353
- Restore support for reading Stata 104-format and enable reading 103-format dta files (:issue:`58554`)
54-
- Support passing a :class:`Set` and :class:`Iterable[Hashable]` input to :meth:`DataFrame.drop_duplicates` (:issue:`59237`)
54+
- Support passing a :class:`Iterable[Hashable]` input to :meth:`DataFrame.drop_duplicates` (:issue:`59237`)
5555
- Support reading Stata 102-format (Stata 1) dta files (:issue:`58978`)
5656
- Support reading Stata 110-format (Stata 7) dta files (:issue:`47176`)
5757

pandas/core/frame.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6534,7 +6534,7 @@ def dropna(
65346534
@overload
65356535
def drop_duplicates(
65366536
self,
6537-
subset: Hashable | Iterable[Hashable] | set | None = ...,
6537+
subset: Hashable | Iterable[Hashable] | None = ...,
65386538
*,
65396539
keep: DropKeep = ...,
65406540
inplace: Literal[True],
@@ -6544,7 +6544,7 @@ def drop_duplicates(
65446544
@overload
65456545
def drop_duplicates(
65466546
self,
6547-
subset: Hashable | Iterable[Hashable] | set | None = ...,
6547+
subset: Hashable | Iterable[Hashable] | None = ...,
65486548
*,
65496549
keep: DropKeep = ...,
65506550
inplace: Literal[False] = ...,
@@ -6554,7 +6554,7 @@ def drop_duplicates(
65546554
@overload
65556555
def drop_duplicates(
65566556
self,
6557-
subset: Hashable | Iterable[Hashable] | set | None = ...,
6557+
subset: Hashable | Iterable[Hashable] | None = ...,
65586558
*,
65596559
keep: DropKeep = ...,
65606560
inplace: bool = ...,
@@ -6563,7 +6563,7 @@ def drop_duplicates(
65636563

65646564
def drop_duplicates(
65656565
self,
6566-
subset: Hashable | Iterable[Hashable] | set | None = None,
6566+
subset: Hashable | Iterable[Hashable] | None = None,
65676567
*,
65686568
keep: DropKeep = "first",
65696569
inplace: bool = False,
@@ -6667,7 +6667,7 @@ def drop_duplicates(
66676667

66686668
def duplicated(
66696669
self,
6670-
subset: Hashable | Iterable[Hashable] | set | None = None,
6670+
subset: Hashable | Iterable[Hashable] | None = None,
66716671
keep: DropKeep = "first",
66726672
) -> Series:
66736673
"""

0 commit comments

Comments
 (0)