@@ -834,13 +834,14 @@ def test_append_preserve_index_name(self):
834
834
@pytest .mark .parametrize ("df_columns" , [
835
835
pd .RangeIndex (3 ),
836
836
pd .CategoricalIndex ('A B C' .split ()),
837
+ pd .CategoricalIndex ('A B C' .split (), ordered = True ),
837
838
pd .MultiIndex .from_arrays (['A B C' .split (), 'D E F' .split ()]),
838
839
pd .IntervalIndex .from_breaks ([0 , 1 , 2 , 3 ]),
839
840
pd .DatetimeIndex ([dt .datetime (2013 , 1 , 3 , 0 , 0 ),
840
841
dt .datetime (2013 , 1 , 3 , 6 , 10 ),
841
842
dt .datetime (2013 , 1 , 3 , 7 , 12 )]),
842
843
pd .Index ([1 , 2 , 3 ]),
843
- ])
844
+ ], ids = lambda x : str ( x . dtype ) )
844
845
def test_append_same_columns_type (self , df_columns ):
845
846
# GH18359
846
847
@@ -873,7 +874,7 @@ def test_append_same_columns_type(self, df_columns):
873
874
pd .DatetimeIndex ([dt .datetime (2013 , 1 , 3 , 0 , 0 ),
874
875
dt .datetime (2013 , 1 , 3 , 6 , 10 ),
875
876
dt .datetime (2013 , 1 , 3 , 7 , 12 )]),
876
- ], r = 2 ))
877
+ ], r = 2 ), ids = lambda x : str ( x . dtype ) )
877
878
def test_append_different_columns_types (self , df_columns , series_index ):
878
879
# GH18359
879
880
# see also tests 'test_append_multi_index_raises' and
@@ -895,12 +896,13 @@ def test_append_different_columns_types(self, df_columns, series_index):
895
896
@pytest .mark .parametrize ("other_type" , [
896
897
pd .RangeIndex (3 ),
897
898
pd .CategoricalIndex ('A B C' .split ()),
899
+ pd .CategoricalIndex ('A B C' .split (), ordered = True ),
898
900
pd .IntervalIndex .from_breaks ([0 , 1 , 2 , 3 ]),
899
901
pd .DatetimeIndex ([dt .datetime (2013 , 1 , 3 , 0 , 0 ),
900
902
dt .datetime (2013 , 1 , 3 , 6 , 10 ),
901
903
dt .datetime (2013 , 1 , 3 , 7 , 12 )]),
902
904
pd .Index ([4 , 5 , 6 ]),
903
- ])
905
+ ], ids = lambda x : str ( x . dtype ) )
904
906
def test_append_multi_index_raises (self , other_type ):
905
907
# GH18359
906
908
# .append will raise if MultiIndex appends or is appended to a
@@ -923,12 +925,13 @@ def test_append_multi_index_raises(self, other_type):
923
925
@pytest .mark .parametrize ("other_type" , [
924
926
pd .RangeIndex (3 ),
925
927
pd .CategoricalIndex ('A B C' .split ()),
928
+ pd .CategoricalIndex ('A B C' .split (), ordered = True ),
926
929
pd .MultiIndex .from_arrays (['A B C' .split (), 'D E F' .split ()]),
927
930
pd .DatetimeIndex ([dt .datetime (2013 , 1 , 3 , 0 , 0 ),
928
931
dt .datetime (2013 , 1 , 3 , 6 , 10 ),
929
932
dt .datetime (2013 , 1 , 3 , 7 , 12 )]),
930
933
pd .Index ([4 , 5 , 6 ]),
931
- ])
934
+ ], ids = lambda x : str ( x . dtype ) )
932
935
def test_append_interval_index_raises (self , other_type ):
933
936
# GH18359
934
937
# .append will raise if IntervalIndex appends or is appended to a
0 commit comments