0

I'm moving phone and ID numbers from excel to word. But docXTPL likes to add ".0" at the end of the phone number and ID numbers. How do I fix this? Many thanks!

doc = DocxTemplate("Ref.docx") df = pd.read_excel('data.xlsx')

I added symbols such as " or ' but I will have the remove them mannually after running. "." dot does not work. it will continue to add .0 afterwards.

Example:

EXCEL: WORD:
ID YOUR ID IS 1234.0
1234

0 Answers0