@@ -1749,6 +1749,18 @@ def pad(
1749
1749
Returns
1750
1750
-------
1751
1751
Series/Index of objects.
1752
+ A Series or Index where the strings are modified by :meth:`str.%(method)s`.
1753
+
1754
+ See Also
1755
+ --------
1756
+ Series.str.rjust : Fills the left side of strings with an arbitrary
1757
+ character.
1758
+ Series.str.ljust : Fills the right side of strings with an arbitrary
1759
+ character.
1760
+ Series.str.center : Fills both sides of strings with an arbitrary
1761
+ character.
1762
+ Series.str.zfill : Pad strings in the Series/Index by prepending '0'
1763
+ character.
1752
1764
1753
1765
Examples
1754
1766
--------
@@ -2024,11 +2036,19 @@ def decode(self, encoding, errors: str = "strict"):
2024
2036
Parameters
2025
2037
----------
2026
2038
encoding : str
2039
+ Specifies the encoding to be used.
2027
2040
errors : str, optional
2041
+ Specifies the error handling scheme.
2042
+ Possible values are those supported by :meth:`bytes.decode`.
2028
2043
2029
2044
Returns
2030
2045
-------
2031
2046
Series or Index
2047
+ A Series or Index with decoded strings.
2048
+
2049
+ See Also
2050
+ --------
2051
+ Series.str.encode : Encodes strings into bytes in a Series/Index.
2032
2052
2033
2053
Examples
2034
2054
--------
@@ -2063,11 +2083,19 @@ def encode(self, encoding, errors: str = "strict"):
2063
2083
Parameters
2064
2084
----------
2065
2085
encoding : str
2086
+ Specifies the encoding to be used.
2066
2087
errors : str, optional
2088
+ Specifies the error handling scheme.
2089
+ Possible values are those supported by :meth:`str.encode`.
2067
2090
2068
2091
Returns
2069
2092
-------
2070
2093
Series/Index of objects
2094
+ A Series or Index with strings encoded into bytes.
2095
+
2096
+ See Also
2097
+ --------
2098
+ Series.str.decode : Decodes bytes into strings in a Series/Index.
2071
2099
2072
2100
Examples
2073
2101
--------
@@ -3209,7 +3237,8 @@ def len(self):
3209
3237
3210
3238
Returns
3211
3239
-------
3212
- Series or Index of object
3240
+ Series or Index of objects
3241
+ A Series or Index where the strings are modified by :meth:`str.%(method)s`.
3213
3242
3214
3243
See Also
3215
3244
--------
0 commit comments