Skip to content

Commit 31ce667

Browse files
code sample for pandas-dev#42816
1 parent 0971014 commit 31ce667

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

bisect/42816.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# BUG: nlargest raises TypeError "No matching signature found" on Float64Dtype Series, versions >1.3.0 #42816
2+
3+
import numpy as np
4+
import pandas as pd
5+
6+
print(pd.__version__)
7+
8+
s = pd.Series(np.random.random(10)).astype("Float64")
9+
10+
result = s.nlargest(5)
11+
print(result)

0 commit comments

Comments
 (0)