Skip to content

read_table and encoding #1975

Closed
Closed
@jseabold

Description

@jseabold

What in the world is going on here? Shouldn't these both give unicode?

import pandas
from StringIO import StringIO
fin = StringIO("Łaski, Jan;1")
df1 = pandas.read_table(fin, sep=";", encoding="utf-8", header=None)
fin.seek(0)
df2 = pandas.read_csv(fin, sep=";", encoding="utf-8", header=None)

type(df1["X.1"].values[0])
type(df2["X.1"].values[0])

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIO DataIO issues that don't fit into a more specific label

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions