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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Python Visual removing imported data

Hello,

 

I am trying to create a python visual in Power BI. But it seems that it is removing duplicates on a weird way. 

My dataset containes Customers (unique CustomerIDs) split into Active and Churned. You can see in the table that number of Customer IDs is the same as number of distinct Customer IDs (i.e. there are no duplicates).

However, when imported into a python visual, it removes many rows. I dont understand why.

Do you maybe have a clue what is happening here?

 

Thank you

2.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I figured it out.

 

The problem is the constraint on all python visuals.

Python visuals can only import up to 150.000 rows per dataframe and mine is at least double that size (source: link).

I did some work around by importing whole dataframe using Python Script in Power Query as a table in Power BI and visualize it with standard Power BI visuals. So no fancy visualizations for me...

 

 

Hope this saves somebody from time waste in future.

 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I figured it out.

 

The problem is the constraint on all python visuals.

Python visuals can only import up to 150.000 rows per dataframe and mine is at least double that size (source: link).

I did some work around by importing whole dataframe using Python Script in Power Query as a table in Power BI and visualize it with standard Power BI visuals. So no fancy visualizations for me...

 

 

Hope this saves somebody from time waste in future.

 

 

Thanks for Sharing. Please any more details that can help another user, if needed.

Kudos to you !!

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
amitchandak
Super User
Super User

Check, if this can help

https://towardsdatascience.com/using-python-in-power-bi-ee95a6b71443

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.