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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors