cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Babakhsn
Frequent Visitor

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors