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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Babakhsn
Helper I
Helper I

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

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

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.

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

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