Skip to content

Commit 33cb4a9

Browse files
code sample for pandas-dev#12693
1 parent eea4101 commit 33cb4a9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

bisect/12693.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# df.duplicated and drop_duplicates raise TypeError with set and list values. #12693
2+
3+
import pandas as pd
4+
5+
print(pd.__version__)
6+
7+
df = pd.DataFrame([[{"a", "b"}], [{"b", "c"}], [{"b", "a"}]])
8+
9+
try:
10+
result = df.duplicated()
11+
except TypeError as e:
12+
print(e)
13+
else:
14+
print(result)
15+
exit(1)

0 commit comments

Comments
 (0)