From be2398c0aaa303e0288aaa19c12a83d4f7425b2d Mon Sep 17 00:00:00 2001 From: William Andrea <22385371+wjandrea@users.noreply.github.com> Date: Mon, 26 May 2025 14:14:43 -0300 Subject: [PATCH] Typo in shared_docs --- pandas/core/shared_docs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py index 81fa508ae6d23..bf30c215596f2 100644 --- a/pandas/core/shared_docs.py +++ b/pandas/core/shared_docs.py @@ -380,7 +380,7 @@ replaced with `value` - str: string exactly matching `to_replace` will be replaced with `value` - - regex: regexs matching `to_replace` will be replaced with + - regex: regexes matching `to_replace` will be replaced with `value` * list of str, regex, or numeric: @@ -388,7 +388,7 @@ - First, if `to_replace` and `value` are both lists, they **must** be the same length. - Second, if ``regex=True`` then all of the strings in **both** - lists will be interpreted as regexs otherwise they will match + lists will be interpreted as regexes otherwise they will match directly. This doesn't matter much for `value` since there are only a few possible substitution regexes you can use. - str, regex and numeric rules apply as above.