Skip to content

to_excel() fails if unicode sheet name is used #1828

Closed
@lbeltrame

Description

@lbeltrame

Like the subject says, the check in DataFrame.to_excel() checks for an instance of str, rather than basestring, hence unicode names skip the if check and are treated like files, which causes an exception later on in the code. Changing isistance() to check for basestring rather than str fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions