This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hello folks,
I work professionally with Power BI and need a bit of help getting started using Python for data transformation. I already know how to run a python script inside Power BI.
What I have:
I've got a data table containing a UTC timestamp column.
What I want:
1. Read this column into a Python variable, probably a Pandas data structure.
2. Transform the timestamp from UTC to local user time using an IANA tz (I've already got the script for doing this).
3. Export or "print" the transformed data into the original table, deleting or overwriting the original values.
So, tldr: How do I read a table or column of imported data from power BI into a python variable, and how do I "print" or export the transformed data back into a PBI table?
Cheers, and thanks in advance,
Mike
Solved! Go to Solution.
Hi @h4tt3n
Are you trying to do it in Power Query? if so chect this documetaition
https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-python-in-query-editor
Hi @h4tt3n
Are you trying to do it in Power Query? if so chect this documetaition
https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-python-in-query-editor
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 27 | |
| 26 | |
| 22 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 42 | |
| 42 | |
| 41 | |
| 21 | |
| 20 |