Skip to content

read_csv includes the BOM of an utf8 file into the first column label #13497

@dr-leo

Description

@dr-leo

Consider the following script:

import pandas as PD

df = PD.read_csv('sample.csv',
encoding='utf8')
print(df.columns[:5])

Metadata

Metadata

Assignees

No one assigned

    Labels

    Duplicate ReportDuplicate issue or pull requestIO CSVread_csv, to_csv

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions