Skip to content

Commit f3f59c8

Browse files
flaviaouyangpmhatre1
authored andcommitted
DOC: Update drop duplicates documentation to specify method limitation (pandas-dev#57670)
* Update drop duplicates documentation to specify method limitation * Update format * Revert formatting change
1 parent 5ec344d commit f3f59c8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/core/frame.py

+5
Original file line numberDiff line numberDiff line change
@@ -6506,6 +6506,11 @@ def drop_duplicates(
65066506
DataFrame or None
65076507
DataFrame with duplicates removed or None if ``inplace=True``.
65086508
6509+
Notes
6510+
-------
6511+
This method requires columns specified by ``subset`` to be of hashable type.
6512+
Passing unhashable columns will raise a ``TypeError``.
6513+
65096514
See Also
65106515
--------
65116516
DataFrame.value_counts: Count unique combinations of columns.

0 commit comments

Comments
 (0)