Skip to content

Syntax Warning #271

Description

@scottb5612

core.py uses escape sequences that are deprecated and will be dropped in a future release.
These sequences aren't fatal, a SyntaxWarning results, the code will fail in a future release
https://docs.python.org/dev/whatsnew/3.6.html#deprecated-python-behavior

To wit:

site-packages/pandastable/core.py:2814: SyntaxWarning: "$" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\$"? A raw string is also an option.
x = x.replace( '[\$\£\€,)]','', regex=True ).replace( '[(]','-', regex=True )

pandastable/core.py:2816: SyntaxWarning: "\d" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\d"? A raw string is also an option.
x = x.replace( '[^\d.]+', '', regex=True)
There is a well known fix for this problem, thogh I don't know when it will become necessary.

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