Reply
avatar user
Anonymous
Not applicable
Partially syndicated - Outbound

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
avatar user
Anonymous
Not applicable

Syndicated - Outbound

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
avatar user
Anonymous
Not applicable

Syndicated - Outbound

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.

 

 

Syndicated - Outbound

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

Kudos to you !!

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

Syndicated - Outbound

Check, if this can help

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)