We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff26d95 commit 36204d3Copy full SHA for 36204d3
pandas/core/arrays/integer.py
@@ -184,6 +184,8 @@ def coerce_to_array(
184
-------
185
tuple of (values, mask)
186
"""
187
+ values = [] if values is np.nan else values
188
+
189
# if values is integer numpy array, preserve it's dtype
190
if dtype is None and hasattr(values, "dtype"):
191
if is_integer_dtype(values.dtype):
pandas/tests/extension/test_integer.py
@@ -186,9 +186,7 @@ class TestInterface(base.BaseInterfaceTests):
class TestConstructors(base.BaseConstructorsTests):
- @pytest.mark.xfail(reason="bad is-na for empty data")
- def test_construct_empty_dataframe(self, dtype):
- super().test_construct_empty_dataframe(dtype)
+ pass
192
193
194
class TestReshaping(base.BaseReshapingTests):
0 commit comments