Reply
Babakhsn
Helper I
Helper I
Partially syndicated - Outbound

Running Python Script Changes Types and Adds Additional Zeros

Hello everyone.

 

I am running a python script and I have realized that even when my script is empty, after running it the following problem occurs:

Power Query changes text types to decimal and this type changing results in an additional zero. 

This is the column before running the script:

Screenshot 2023-09-27 202725.png

This is it after running the script:

Screenshot 2023-09-27 202901.png

 In my applied steps, after running the script, there is a "Changed Type" step, when I remove it the numbers go to this:

Screenshot 2023-09-27 203037.png

 why is this happening?

can someone help me?

 

Thanks in advance.

Sincerely

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Syndicated - Outbound

Seems to be a locale mismatch. Some cultures use a dot as the decimal separator while others use a comma.  Make sure your culture settings match between Power Query and Python.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Syndicated - Outbound

Seems to be a locale mismatch. Some cultures use a dot as the decimal separator while others use a comma.  Make sure your culture settings match between Power Query and Python.

avatar user

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

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