to_excel() fails if unicode sheet name is used · Issue #1828 · pandas-dev/pandas (original) (raw)
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.