Use of implicit RegExp in Series.str.replace is deprecated
Closed this issue · 3 comments
The Pandas maintainers have deprecated the use of the implicit regex=True
flag for Series.str.replace
in December 2020, which means a future release will break the current use without explicitly setting this flag:
The default value of
regex
forSeries.str.replace()
will change fromTrue
toFalse
in a future release. In addition, single character regular expressions will not be treated as literal strings whenregex=True
is set (GH24804)
As such, calls to kenpompy
methods that reply on the implicit regex=True
have begun printing FutureWarning
s at runtime:
/kenpompy/kenpompy/summary.py:111: FutureWarning: The default value of regex will change from True to False in a future version.
Thanks for the PRs. Don't suppose you'd like to take a crack at fixing the other FutureWarnings as well?
Lots of FutureWarning: Columnar iteration over characters will be deprecated in future releases.
warnings popping, but it's a pretty easy fix (see below).
I'd love to - should have some time later today to take a crack at it.