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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors