Рет қаралды 13,951
Python is coming to Excel! 🐍 🥳
Here's an introduction in 5 minutes.
Main takeaways:
1. Python is executed in a "Python cell". No local Python instance is required. The code is executed in the cloud.
2. These imports are run at service startup so you don't need to import them explicitly and can write code using them without further action:
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import statsmodels as sm
import seaborn as sns
import excel
2. A python cell is created by typing =PY( in a worksheet cell.
3. Objects created in one cell can reference objects created in other cells provided they respect "row-major order". Left to Right, Top to Bottom. See the video.
4. A Python cell can either display the Object type of the last statement executed in that cell, or it can convert the value of that statement into an Excel value.
5. You can switch Python Output Type using the drop-down to the left of the Formula Bar, or by using Ctrl+Alt+Shift+M.
What are your initial thoughts / questions about this feature? I'll try to answer them. 💬
#data #analytics #python #excel #dataanalytics