We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1efb8c3 commit 43be6b7Copy full SHA for 43be6b7
pandas/tests/extension/base/missing.py
@@ -6,6 +6,8 @@
6
7
8
class BaseMissingTests:
9
+ _supports_fillna_copy_false = True
10
+
11
def test_isna(self, data_missing):
12
expected = np.array([True, False])
13
@@ -179,3 +181,9 @@ def test_fillna_fill_other(self, data):
179
181
expected = pd.DataFrame({"A": data, "B": [0.0] * len(result)})
180
182
183
tm.assert_frame_equal(result, expected)
184
185
+ def test_fillna_readonly(self, data_missing):
186
+ fill_value = data_missing[1]
187
+ result = data_missing.fillna(fill_value, copy=False)
188
+ expected = data_missing.fillna(fill_value, copy=True)
189
+ tm.assert_extension_array_equal(result, expected)
0 commit comments