Answer the question
In order to leave comments, you need to log in
Python - Trouble writing a number with a comma in Excel?
I use BeautifulSoup to parse data from a website. For writing to excel - openpyxl.
Numbers with a dot (for example, 39.40) writes. If fractional (39.40), then only 39 is inserted into the cell.
What is the reason?
PS: if you specify the float data type when extracting and writing, then the record will be like this: 39.00. Cuts off everything after the comma.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question