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"] )
Related functions
Other functions related to Python.Execute are:
2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy