Skip to content

QST: read_excel - "odf engine" remove "\n" when reading multi-line cell from “ods” file #41625

@msameen99

Description

@msameen99
  • I have searched the [pandas] tag on StackOverflow for similar questions.

  • I have asked my usage related question on StackOverflow.


I've a simple "ods" file (Test01.ods) with the below data in "sheet1" :-

enter image description here

also I saved it as "xlsx" (Test01.xlsx) so I've two files contains exactly the same data.

Now when I try to read them using Pandas "read_excel" with the below code

enter image description here

the "xslx" file is showing the line break char "\n" while the "ods" file does not.

enter image description here

Any idea why? and how to force "odf engine" to output the "\n" to the dataframe?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TriageIssue that has not been reviewed by a pandas team memberUsage Question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions