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 August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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