File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -637,6 +637,29 @@ def test_use_nullable_dtypes(self, engine):
637
637
expected = expected .drop ("c" , axis = 1 )
638
638
tm .assert_frame_equal (result2 , expected )
639
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
+
640
663
641
664
@pytest .mark .filterwarnings ("ignore:CategoricalBlock is deprecated:DeprecationWarning" )
642
665
class TestParquetPyArrow (Base ):
You can’t perform that action at this time.
0 commit comments