Python.Execute

Updated on

Python.Execute is a Power Query M function that executes a Python script and returns data frames.

Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365

Syntax

Python.Execute(
   script as text,
   optional arguments as nullable record,
) as table

Examples

Executes Python script and returns data frames

Python.Execute( "a = pandas.DataFrame( dataset[dataset.columns[0]] )", [dataset=#"Source"] )

Other functions related to Python.Execute are:

Contribute » | Contributors: Rick de Groot

2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy