Skip to content

Commit 2521f05

Browse files
add code sample for pandas-dev#32749
1 parent 3fc4ca6 commit 2521f05

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

bisect/32749.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import pandas as pd
2+
3+
from pandas.tests.extension.decimal import DecimalArray, make_data
4+
5+
s = pd.Series(DecimalArray(make_data()[:5]))
6+
7+
print(s)
8+
9+
try:
10+
s.idxmin()
11+
except TypeError as err:
12+
msg = "reduction operation 'argmin' not allowed for this dtype"
13+
assert str(err) == msg

0 commit comments

Comments
 (0)