Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
volyn
Frequent Visitor

how to use POWER QUERY values in dataframe

Hello,

 

I have built Python visual in POWER BI desktop and I tested it on fictive data generated directly in script via DataFrame

 

df = pd.DataFrame({
'group': ['A'],
'var1': [38],
'var2': [29],
'var3': [17],
'var4': [27],
'var5': [28]
})
 
 
If I want to use values from my query which was created in POWER QUERY, how can I  use it to feed DataFrame in Python pls?
 
Thanks
 
O.
1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi @volyn 

I found this article to see if it helps you. You need creat a table from power query and close&apply. Then the table will show under the Fields. And drag it to the python visuals Values directly.

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-python-visuals

and this the video.

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chenwuz-msft
Community Support
Community Support

Hi @volyn 

I found this article to see if it helps you. You need creat a table from power query and close&apply. Then the table will show under the Fields. And drag it to the python visuals Values directly.

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-python-visuals

and this the video.

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.