File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
228
228
-i " pandas.Series.str.strip RT03" \
229
229
-i " pandas.Series.str.swapcase RT03" \
230
230
-i " pandas.Series.str.title RT03" \
231
- -i " pandas.Series.str.translate RT03,SA01" \
232
231
-i " pandas.Series.str.upper RT03" \
233
232
-i " pandas.Series.str.wrap RT03,SA01" \
234
233
-i " pandas.Series.str.zfill RT03" \
Original file line number Diff line number Diff line change @@ -2408,7 +2408,11 @@ def translate(self, table):
2408
2408
"""
2409
2409
Map all characters in the string through the given mapping table.
2410
2410
2411
- Equivalent to standard :meth:`str.translate`.
2411
+ This method is equivalent to the standard :meth:`str.translate`
2412
+ method for strings. It maps each character in the string to a new
2413
+ character according to the translation table provided. Unmapped
2414
+ characters are left unchanged, while characters mapped to None
2415
+ are removed.
2412
2416
2413
2417
Parameters
2414
2418
----------
@@ -2421,6 +2425,14 @@ def translate(self, table):
2421
2425
Returns
2422
2426
-------
2423
2427
Series or Index
2428
+ A new Series or Index with translated strings.
2429
+
2430
+ See Also
2431
+ --------
2432
+ Series.str.replace : Replace occurrences of pattern/regex in the
2433
+ Series with some other string.
2434
+ Index.str.replace : Replace occurrences of pattern/regex in the
2435
+ Index with some other string.
2424
2436
2425
2437
Examples
2426
2438
--------
You can’t perform that action at this time.
0 commit comments