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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Prevent Power Query from returning all datasets used in Python script

I'm using a Python script to perform some transformations to a dataset, but I realized the script returns a list of all dataframes used in the process.

aperaza_0-1676048616266.png

 

I already tried deleting the dataframes using the del statement in Python, but Power Query keeps returning all dataframes.

 

# Clean memory
lst = [dataset, inbound, merged, outbound, voicemail]
del lst

 

Is there a way to tell Power Query to return only a single dataframe?

 

Thanks in advance!

6 REPLIES 6
Faisal97
New Member

I want to make numbers like in excel with comma. But, It's convert it to whole number automatically in power bi. Is anyone can help me with that. 


Faisal97_0-1676067243261.png

 

@Faisal97 ,

in the power query editor, if you change the column data type to "Decimal Number(1.2)"
by left clicking on the existing whole number type and choosing decimal, do you get errors?

adudani_0-1676073863520.png

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

thank you for your response. Yes when I change it to decimal numer 1.2 I got an error

Faisal97_0-1676075981825.png

 

I think It's because of the multiple periods(.) 

To test it, split the column by delimeter right most delimeter .

If this resolves the error let me know.

It will then depend on the accuracy required.

I suggest formatting in such a way that you have only one "." In the number for decimal places.

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

Still not working with Delimiter option, but I'll find a way to solve it thanks.

Faisal97_0-1676080086234.png

 

adudani
Memorable Member
Memorable Member

hi @Anonymous,

 

you could click on down arrow in the Name column, 

and use any of the functions ( Name contains, starts with etc.)
this will return the records of selected dataframes.

 

let me know if this works for you.

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors