We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25cdf31 commit f10bbe9Copy full SHA for f10bbe9
pandas/tests/io/test_parquet.py
@@ -637,6 +637,29 @@ def test_use_nullable_dtypes(self, engine):
637
expected = expected.drop("c", axis=1)
638
tm.assert_frame_equal(result2, expected)
639
640
+ @pytest.mark.parametrize(
641
+ "dtype",
642
+ [
643
+ "Int64",
644
+ "UInt8",
645
+ "boolean",
646
+ "object",
647
+ "datetime64[ns, UTC]",
648
+ "float",
649
+ "period[D]",
650
+ "Float64",
651
+ "string",
652
+ ],
653
+ )
654
+ def test_read_empty_array(self, pa, dtype):
655
+ # GH #41241
656
+ df = pd.DataFrame(
657
+ {
658
+ "value": pd.array([], dtype=dtype),
659
+ }
660
661
+ check_round_trip(df, pa, read_kwargs={"use_nullable_dtypes": True})
662
+
663
664
@pytest.mark.filterwarnings("ignore:CategoricalBlock is deprecated:DeprecationWarning")
665
class TestParquetPyArrow(Base):
0 commit comments