Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello!
I need to load a Python script fro a file and execute it in Power Query.
The idea is:
let
Source = File.Content("python.py"), // or "somefile.txt"
Script = Python.Execute(Source),
.... following code
in
How to skip text splitting and get just the script code into Source?
Thanks in advance.
Solved! Go to Solution.
Usually Text.FromBinary ...
Note that this opens you to code injection attacks.
Note that the pyton script is supposed to return a dataframe.
Usually Text.FromBinary ...
Note that this opens you to code injection attacks.
Note that the pyton script is supposed to return a dataframe.
| User | Count |
|---|---|
| 15 | |
| 8 | |
| 6 | |
| 5 | |
| 5 |