@@ -724,7 +724,7 @@ def test_between_time_raises(self):
724
724
df .between_time (start_time = '00:00' , end_time = '12:00' )
725
725
726
726
@pytest .mark .parametrize ('axis' , [
727
- (), 'index' , 'columns' , ('index' , 'columns' ), 0 , 1 , (0 ,1 )])
727
+ (), ( 'index' ,), ( 'columns' ,), ('index' , 'columns' ), ( 0 ,), ( 1 ,) , (0 ,1 )])
728
728
def test_between_time_axis (self , axis ):
729
729
# issue 8839
730
730
rng = date_range ('1/1/2000' , periods = 100 , freq = '10min' )
@@ -743,7 +743,7 @@ def test_between_time_axis(self, axis):
743
743
assert len (selected ) == exp_len
744
744
745
745
@pytest .mark .parametrize ('axis' , [
746
- (), 'index' , 'columns' , ('index' , 'columns' )])
746
+ (), ( 'index' ,), ( 'columns' ,), ('index' , 'columns' ), ( 0 ,), ( 1 ,), ( 0 , 1 )])
747
747
def test_between_time_axis_raises (self , axis ):
748
748
# issue 8839
749
749
rng = date_range ('1/1/2000' , periods = 100 , freq = '10min' )
@@ -752,12 +752,12 @@ def test_between_time_axis_raises(self, axis):
752
752
ts = DataFrame (rand_data , index = rng , columns = rng )
753
753
stime , etime = ('08:00:00' , '09:00:00' )
754
754
755
- if 'index' not in axis :
755
+ if 'index' not in axis and 0 not in axis :
756
756
ts .index = mask
757
757
pytest .raises (TypeError , ts .between_time , stime , etime )
758
758
pytest .raises (TypeError , ts .between_time , stime , etime , axis = 0 )
759
759
760
- if 'columns' not in axis :
760
+ if 'columns' not in axis and 1 not in axis :
761
761
ts .columns = mask
762
762
pytest .raises (TypeError , ts .between_time , stime , etime , axis = 1 )
763
763
0 commit comments