We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9432dbf commit c542519Copy full SHA for c542519
pandas/tests/series/methods/test_fillna.py
@@ -953,9 +953,8 @@ def test_fillna_parr(self):
953
dti = date_range(
954
Timestamp.max - Timedelta(nanoseconds=10), periods=5, freq="ns"
955
)
956
- pi = dti.to_period("ns")
957
- parr = pi._data
958
- parr[2] = NaT
+ ser = Series(dti.to_period("ns"))
+ ser[2] = NaT
959
arr = period_array(
960
[
961
Timestamp("2262-04-11 23:47:16.854775797"),
@@ -968,6 +967,6 @@ def test_fillna_parr(self):
968
967
969
expected = Series(arr)
970
971
- filled = Series(parr.fillna(method="pad"))
+ filled = Series(ser.fillna(method="pad"))
972
973
tm.assert_series_equal(filled, expected)
0 commit comments