Forum Discussion
unable to run python code on a combined table to export the table to a csv
- 6 years ago
Hi, Pandadev
The tables in power query can be recongnized as pandas object directly, so you can simply call other tables by calling relevant pandas object. I'd like to suggest you refer to the following link to see if it helps
How to use Python with mutiple tables in the Power Query Editor
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Pandadev , this statement should have one more single quote
.to_csv('C:\QC Checker\QC Checker Metrics.csv, index=False)
like
.to_csv('C:\QC Checker\QC Checker Metrics.csv', index=False)
I still get this error Formula.Firewall: Query 'Futures Summary' (step 'Run Python script') references other queries or steps, so it may not directly access a data source. Please rebuild this data combination.