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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
prakash11440278
Post Prodigy
Post Prodigy

Python Script editor - Duplicate rows will be removed from the data

Hi All,

I have created a python visual using python script. While creating the visual i have observed duplicate records are automatically removed in the script itself. I dont want to remove the duplicate records in my visual. Please help me how can i keep the duplicate records in my python visual. Below is the warning message displaying in python visual script editor. Thanks.

 

prakash11440278_0-1666758184199.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@prakash11440278 , Add some kind of index column or rank columns

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
in_serch_of_AHH
Frequent Visitor

2023-06-07_14-11-53.jpg

 

Thank you for the tip @amitchandak !  This helped me produce my first python visual in Power BI.  For the longest time I was struggling to understand why I was getting the visual on the left, rather than the right. 😖

amitchandak
Super User
Super User

@prakash11440278 , Add some kind of index column or rank columns

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
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.