Skip to content

Use of implicit RegExp in Series.str.replace is deprecated #18

@esqew

Description

@esqew

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 for Series.str.replace() will change from True to False in a future release. In addition, single character regular expressions will not be treated as literal strings when regex=True is set (GH24804)

As such, calls to kenpompy methods that reply on the implicit regex=True have begun printing FutureWarnings at runtime:

/kenpompy/kenpompy/summary.py:111: FutureWarning: The default value of regex will change from True to False in a future version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions