Skip to content

Commit eda7729

Browse files
code sample for pandas-dev#43424
1 parent 897a614 commit eda7729

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

bisect/43424.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# BUG: Series.fillna raising with float32 dtype when using value arg #43424
2+
3+
import pandas as pd
4+
5+
print(pd.__version__)
6+
7+
ser = pd.Series([1.0, 2.0], dtype="float32")
8+
val = {1: 1.01}
9+
result = ser.fillna(val)
10+
print(result)
11+
12+
pd.testing.assert_series_equal(result, ser)

0 commit comments

Comments
 (0)