Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

#PYTHON errors are returned by Python in Excel formulas when a formula can't run properly. See below for specific cases.

An error occurred in an external calculation service.

An error was returned by the Python interpreter as a result of running the Python code.

We were unable to execute your Python code. Please check the Python formula for errors and try again.

Something went wrong with the service. Please try again.

Python in Excel supports importing data from an Excel worksheet or a Power Query data source. 
 
To protect your security, common external data functions in Python, such as pandas.read_csv and pandas.read_excel, aren’t compatible with Python in Excel. To import external data, use the Get & Transform feature in Excel to access Power Query. For more information, see Use Power Query to import data for Python in Excel

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×