@@ -660,9 +660,9 @@ def str_match(arr, pat, case=True, flags=0, na=np.nan):
660
660
661
661
See Also
662
662
--------
663
- contains : analogous , but less strict, relying on re.search instead of
664
- re.match
665
- extract : extract matched groups
663
+ contains : Analogous , but less strict, relying on re.search instead of
664
+ re.match.
665
+ extract : Extract matched groups.
666
666
"""
667
667
if not case :
668
668
flags |= re .IGNORECASE
@@ -1255,13 +1255,13 @@ def str_pad(arr, width, side='left', fillchar=' '):
1255
1255
1256
1256
See Also
1257
1257
--------
1258
- Series.str.rjust: Fills the left side of strings with an arbitrary
1258
+ Series.str.rjust : Fills the left side of strings with an arbitrary
1259
1259
character. Equivalent to ``Series.str.pad(side='left')``.
1260
- Series.str.ljust: Fills the right side of strings with an arbitrary
1260
+ Series.str.ljust : Fills the right side of strings with an arbitrary
1261
1261
character. Equivalent to ``Series.str.pad(side='right')``.
1262
- Series.str.center: Fills boths sides of strings with an arbitrary
1262
+ Series.str.center : Fills boths sides of strings with an arbitrary
1263
1263
character. Equivalent to ``Series.str.pad(side='both')``.
1264
- Series.str.zfill: Pad strings in the Series/Index by prepending '0'
1264
+ Series.str.zfill : Pad strings in the Series/Index by prepending '0'
1265
1265
character. Equivalent to ``Series.str.pad(side='left', fillchar='0')``.
1266
1266
1267
1267
Examples
@@ -2485,7 +2485,8 @@ def rsplit(self, pat=None, n=-1, expand=False):
2485
2485
'side' : 'first' ,
2486
2486
'return' : '3 elements containing the string itself, followed by two '
2487
2487
'empty strings' ,
2488
- 'also' : 'rpartition : Split the string at the last occurrence of `sep`'
2488
+ 'also' : 'rpartition : Split the string at the last occurrence of '
2489
+ '`sep`.'
2489
2490
})
2490
2491
@deprecate_kwarg (old_arg_name = 'pat' , new_arg_name = 'sep' )
2491
2492
def partition (self , sep = ' ' , expand = True ):
@@ -2497,7 +2498,8 @@ def partition(self, sep=' ', expand=True):
2497
2498
'side' : 'last' ,
2498
2499
'return' : '3 elements containing two empty strings, followed by the '
2499
2500
'string itself' ,
2500
- 'also' : 'partition : Split the string at the first occurrence of `sep`'
2501
+ 'also' : 'partition : Split the string at the first occurrence of '
2502
+ '`sep`.'
2501
2503
})
2502
2504
@deprecate_kwarg (old_arg_name = 'pat' , new_arg_name = 'sep' )
2503
2505
def rpartition (self , sep = ' ' , expand = True ):
@@ -2593,13 +2595,13 @@ def zfill(self, width):
2593
2595
2594
2596
See Also
2595
2597
--------
2596
- Series.str.rjust: Fills the left side of strings with an arbitrary
2598
+ Series.str.rjust : Fills the left side of strings with an arbitrary
2597
2599
character.
2598
- Series.str.ljust: Fills the right side of strings with an arbitrary
2600
+ Series.str.ljust : Fills the right side of strings with an arbitrary
2599
2601
character.
2600
- Series.str.pad: Fills the specified sides of strings with an arbitrary
2602
+ Series.str.pad : Fills the specified sides of strings with an arbitrary
2601
2603
character.
2602
- Series.str.center: Fills boths sides of strings with an arbitrary
2604
+ Series.str.center : Fills boths sides of strings with an arbitrary
2603
2605
character.
2604
2606
2605
2607
Notes
@@ -2793,14 +2795,14 @@ def extractall(self, pat, flags=0):
2793
2795
2794
2796
@Appender (_shared_docs ['find' ] %
2795
2797
dict (side = 'lowest' , method = 'find' ,
2796
- also = 'rfind : Return highest indexes in each strings' ))
2798
+ also = 'rfind : Return highest indexes in each strings. ' ))
2797
2799
def find (self , sub , start = 0 , end = None ):
2798
2800
result = str_find (self ._parent , sub , start = start , end = end , side = 'left' )
2799
2801
return self ._wrap_result (result )
2800
2802
2801
2803
@Appender (_shared_docs ['find' ] %
2802
2804
dict (side = 'highest' , method = 'rfind' ,
2803
- also = 'find : Return lowest indexes in each strings' ))
2805
+ also = 'find : Return lowest indexes in each strings. ' ))
2804
2806
def rfind (self , sub , start = 0 , end = None ):
2805
2807
result = str_find (self ._parent , sub ,
2806
2808
start = start , end = end , side = 'right' )
@@ -2852,15 +2854,15 @@ def normalize(self, form):
2852
2854
2853
2855
@Appender (_shared_docs ['index' ] %
2854
2856
dict (side = 'lowest' , similar = 'find' , method = 'index' ,
2855
- also = 'rindex : Return highest indexes in each strings' ))
2857
+ also = 'rindex : Return highest indexes in each strings. ' ))
2856
2858
def index (self , sub , start = 0 , end = None ):
2857
2859
result = str_index (self ._parent , sub ,
2858
2860
start = start , end = end , side = 'left' )
2859
2861
return self ._wrap_result (result )
2860
2862
2861
2863
@Appender (_shared_docs ['index' ] %
2862
2864
dict (side = 'highest' , similar = 'rfind' , method = 'rindex' ,
2863
- also = 'index : Return lowest indexes in each strings' ))
2865
+ also = 'index : Return lowest indexes in each strings. ' ))
2864
2866
def rindex (self , sub , start = 0 , end = None ):
2865
2867
result = str_index (self ._parent , sub ,
2866
2868
start = start , end = end , side = 'right' )
0 commit comments