File tree 3 files changed +228
-200
lines changed
3 files changed +228
-200
lines changed Original file line number Diff line number Diff line change @@ -986,7 +986,7 @@ def _gen_mi():
986
986
"uint" : tm .makeUIntIndex (100 ),
987
987
"range" : tm .makeRangeIndex (100 ),
988
988
"float" : tm .makeFloatIndex (100 ),
989
- "bool" : tm .makeBoolIndex (2 ),
989
+ "bool" : tm .makeBoolIndex (10 ),
990
990
"categorical" : tm .makeCategoricalIndex (100 ),
991
991
"interval" : tm .makeIntervalIndex (100 ),
992
992
"empty" : Index ([]),
@@ -998,6 +998,15 @@ def _gen_mi():
998
998
999
999
@pytest .fixture (params = indices_dict .keys ())
1000
1000
def indices (request ):
1001
+ """
1002
+ Fixture for many "simple" kinds of indices.
1003
+
1004
+ These indices are unlikely to cover corner cases, e.g.
1005
+ - no names
1006
+ - no NaTs/NaNs
1007
+ - no values near implementation bounds
1008
+ - ...
1009
+ """
1001
1010
# copy to avoid mutation, e.g. setting .name
1002
1011
return indices_dict [request .param ].copy ()
1003
1012
@@ -1015,6 +1024,14 @@ def _create_series(index):
1015
1024
}
1016
1025
1017
1026
1027
+ @pytest .fixture
1028
+ def series_with_simple_index (indices ):
1029
+ """
1030
+ Fixture for tests on series with changing types of indices.
1031
+ """
1032
+ return _create_series (indices )
1033
+
1034
+
1018
1035
_narrow_dtypes = [
1019
1036
np .float16 ,
1020
1037
np .float32 ,
You can’t perform that action at this time.
0 commit comments