Skip to content

same .tsv file, get different data-frame structure using engine 'python' and 'c' #26545

Closed
@Jane-Eyre

Description

@Jane-Eyre

In my Mac, I have a Tab-Separated values file with encoding UTF-8, and the version of pandas is
0.24.2.
74872_zh_CN_UI.txt

when I use read_csv function with engine 'python' like this:
b = pd.read_csv("/Users/GHIBLI/Documents/vmware-L10n/bert/zh_CN/74872_zh_CN_UI.tsv", engine="python", delimiter="\t")
print(b.shape)
I got (8, 1)

if with default engine:
b = pd.read_csv("/Users/GHIBLI/Documents/vmware-L10n/bert/zh_CN/74872_zh_CN_UI.tsv", delimiter="\t")
print(b.shape)
I got (8,22)

In contrast to 'C' engine, this 'python' engine seems that is not as simple as just 'feature-complete' I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions