on-internet
← Community

How to read SharePoint Online (Office365) Excel files into Python specifically pandas with Work or School Account?

Stack Overflow ·

The question is very similar to the link below. How to read SharePoint Online (Office365) Excel files in Python with Work or School Account? Essentially I would like to import an excel file off SharePoint into pandas for further analysis. The issue is when I run the code below I get the following error. XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'\r\n<!DOCT' My code: from office365.runtime.auth.authentication_context import AuthenticationContext from office365.sharepoint.client_context import ClientContext from office365.sharepoint.file import File url = 'https

Comments

Sign in or sign up to comment and upvote.

No comments yet.