Skip to content

warning when using pandas read_csv #4

Description

@jeroenbouwman

A SyntaxWarning: invalid escape sequence '\s' is raised when using the read_csv function. All use of it where a '\s+' is used should be changed from:

df = pd.read_csv(files, sep='\s+', header=None)

to

df = pd.read_csv(files, sep=r'\s+', header=None)

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