Skip to content

Replaced Part: /xl/worksheets/sheet1.xml part with XML error. A document must contain exactly one root element. Line 1, column 0. #99

@amzar96

Description

@amzar96

L_FB55 tmp

Here is my code when using PyExcelerate

from pyexcelerate import Workbook
def to_excel(df, path, sheet_name="Documents"):
    data = [
        df.columns.tolist(),
    ] + df.values.tolist()
    wb = Workbook()
    wb.new_sheet(sheet_name, data=data)
    wb.save(path)

I can't debug the error because I do not see any value to search. Does anyone know how to fix this?

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