[{"data":1,"prerenderedAt":68},["ShallowReactive",2],{"topic:python-in-excel":3},[4,12,20,26,32,38,44,52,57,62],{"path":5,"title":6,"description":7,"type":8,"topics":9,"kind":11},"\u002Fgetting-started-with-python-excel-automation\u002Fusing-python-in-excel","Using Python in Excel","Write =PY formulas that analyse workbook data with pandas, return tables and charts to the grid, and fail clearly — plus where in-cell Python ends and a real automation script begins.","guide",[10],"python-in-excel",null,{"path":13,"title":14,"description":15,"type":16,"topics":17,"kind":11},"\u002Fgetting-started-with-python-excel-automation\u002Fusing-python-in-excel\u002Fclean-data-with-pandas-in-python-in-excel","Clean Data with pandas in Python in Excel","Use pandas inside Excel's =PY() cells to clean a messy table — trim text, fix types, drop duplicates, standardise categories — and return the cleaned table to the grid, with the calculation-order and output-mode rules that make it work.","how-to",[10,18,19],"data-cleaning","pandas",{"path":21,"title":22,"description":23,"type":16,"topics":24,"kind":11},"\u002Fgetting-started-with-python-excel-automation\u002Fusing-python-in-excel\u002Ffix-python-in-excel-errors","Fix Python in Excel Errors","What #PYTHON!, #CALC!, #SPILL!, #BUSY!, #CONNECT!, #TIMEOUT!, #BLOCKED! and #UNKNOWN! mean in a =PY cell, how to read the Diagnostics pane, and the fix for each one.",[10,25],"troubleshooting",{"path":27,"title":28,"description":29,"type":16,"topics":30,"kind":11},"\u002Fgetting-started-with-python-excel-automation\u002Fusing-python-in-excel\u002Fforecast-a-time-series-with-python-in-excel","Forecast a Time Series with Python in Excel","Use Python in Excel to forecast monthly sales from a table in the workbook: pull the history with xl(), give it a proper monthly date index, fit a Holt-Winters model with statsmodels, return the forecast and a simple prediction band as a spilled range, chart it with matplotlib, and know the limits — cloud execution, recalculation and FORECAST.ETS as a formula-only alternative.",[10,31],"dates-and-times",{"path":33,"title":34,"description":35,"type":16,"topics":36,"kind":11},"\u002Fgetting-started-with-python-excel-automation\u002Fusing-python-in-excel\u002Fget-external-data-into-python-in-excel","Get External Data into Python in Excel with Power Query","Python in Excel cannot read files or call the internet, so bring CSVs, databases and web data in with Power Query, then analyse them with xl() — tables versus connection-only queries, refresh order, parameters and size limits.",[10,37],"data-sources",{"path":39,"title":40,"description":41,"type":16,"topics":42,"kind":11},"\u002Fgetting-started-with-python-excel-automation\u002Fusing-python-in-excel\u002Fplot-charts-with-matplotlib-in-python-in-excel","Plot Charts with matplotlib in Python in Excel","Draw matplotlib and seaborn charts inside a =PY cell, show them in the cell or floating over the grid, size them properly, and know when a native Excel chart is the better choice.",[10,43],"charts-and-images",{"path":45,"title":46,"description":47,"type":16,"topics":48,"kind":11},"\u002Fgetting-started-with-python-excel-automation\u002Fusing-python-in-excel\u002Fpython-in-excel-vs-openpyxl-and-xlwings","Python in Excel vs openpyxl and xlwings","Python in Excel runs code inside a cell; openpyxl and pandas write files from a script; xlwings drives the Excel application. Compare where each runs, what it can reach and which jobs it suits.",[10,49,50,51],"xlwings","choosing-libraries","openpyxl",{"path":53,"title":54,"description":55,"type":16,"topics":56,"kind":11},"\u002Fgetting-started-with-python-excel-automation\u002Fusing-python-in-excel\u002Freference-cells-ranges-and-tables-with-xl-in-python-in-excel","Reference Cells, Ranges and Tables with xl() in Python in Excel","Everything a =PY cell knows about your workbook comes through xl(). Reference single cells, ranges with headers, Excel tables, other sheets, named ranges and Power Query results.",[10],{"path":58,"title":59,"description":60,"type":16,"topics":61,"kind":11},"\u002Fgetting-started-with-python-excel-automation\u002Fusing-python-in-excel\u002Freturn-dataframes-and-values-from-python-in-excel-cells","Return DataFrames and Values from Python in Excel Cells","A =PY cell returns its last expression, either as a Python object card or spilled into the grid as Excel values. Shape DataFrames for the grid, avoid #SPILL!, and chain cells without recomputing.",[10,19],{"path":63,"title":64,"description":65,"type":16,"topics":66,"kind":11},"\u002Fgetting-started-with-python-excel-automation\u002Fusing-python-in-excel\u002Frun-a-regression-with-python-in-excel","Run a Regression with Python in Excel","Fit a multiple linear regression in a =PY cell with statsmodels: read a table with xl(), fit with a formula, return a tidy coefficient table to the grid, predict with intervals, check the residuals with a chart, and confirm the numbers against LINEST.",[10,67],"formula-equivalents",1790972052271]