@@ -91,6 +91,7 @@ def setUp(self):
91
91
self .io_1d = ndtest (3 )
92
92
self .io_2d = ndtest ("a=1..3; b=b0,b1" )
93
93
self .io_3d = ndtest ("a=1..3; b=b0,b1; c=c0..c2" )
94
+ self .io_int_labels = ndtest ("a=0..2; b=0..2; c=0..2" )
94
95
self .io_unsorted = ndtest ("a=3..1; b=b1,b0; c=c2..c0" )
95
96
self .io_missing_values = ndtest ("a=1..3; b=b0,b1; c=c0..c2" , dtype = float )
96
97
self .io_missing_values [2 , 'b0' ] = np .nan
@@ -2608,6 +2609,9 @@ def test_read_csv(self):
2608
2609
res = read_csv (inputpath ('test3d.csv' ))
2609
2610
assert_array_equal (res , self .io_3d )
2610
2611
2612
+ res = read_csv (inputpath ('testint_labels.csv' ))
2613
+ assert_array_equal (res , self .io_int_labels )
2614
+
2611
2615
res = read_csv (inputpath ('test2d_classic.csv' ))
2612
2616
assert_array_equal (res , ndtest ("a=a0..a2; b0..b2" ))
2613
2617
@@ -2675,6 +2679,9 @@ def test_read_excel_xlwings(self):
2675
2679
arr = read_excel (inputpath ('test.xlsx' ), '3d' )
2676
2680
assert_array_equal (arr , self .io_3d )
2677
2681
2682
+ arr = read_excel (inputpath ('test.xlsx' ), 'int_labels' )
2683
+ assert_array_equal (arr , self .io_int_labels )
2684
+
2678
2685
arr = read_excel (inputpath ('test.xlsx' ), '2d_classic' )
2679
2686
assert_array_equal (arr , ndtest ("a=a0..a2; b0..b2" ))
2680
2687
@@ -2756,6 +2763,9 @@ def test_read_excel_pandas(self):
2756
2763
arr = read_excel (inputpath ('test.xlsx' ), '3d' , engine = 'xlrd' )
2757
2764
assert_array_equal (arr , self .io_3d )
2758
2765
2766
+ arr = read_excel (inputpath ('test.xlsx' ), 'int_labels' , engine = 'xlrd' )
2767
+ assert_array_equal (arr , self .io_int_labels )
2768
+
2759
2769
arr = read_excel (inputpath ('test.xlsx' ), '2d_classic' , engine = 'xlrd' )
2760
2770
assert_array_equal (arr , ndtest ("a=a0..a2; b0..b2" ))
2761
2771
0 commit comments