Skip to content

Commit 14199f5

Browse files
committed
Make step None (same as 1) for consistency
1 parent 4471700 commit 14199f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/strings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ def str_split(arr, pat=None, n=None, return_type='series'):
666666
return res
667667

668668

669-
def str_slice(arr, start=None, stop=None, step=1):
669+
def str_slice(arr, start=None, stop=None, step=None):
670670
"""
671671
Slice substrings from each element in array
672672
@@ -994,7 +994,7 @@ def center(self, width):
994994
return self._wrap_result(result)
995995

996996
@copy(str_slice)
997-
def slice(self, start=None, stop=None, step=1):
997+
def slice(self, start=None, stop=None, step=None):
998998
result = str_slice(self.series, start, stop, step)
999999
return self._wrap_result(result)
10001000

0 commit comments

Comments
 (0)