es.davy.ai

Preguntas y respuestas de programación confiables

¿Tienes una pregunta?

Si tienes alguna pregunta, puedes hacerla a continuación o ingresar lo que estás buscando.

Tag: XLWINGS

Python/xlwings establecer el estilo de la tabla de Excel a “ninguno”

He exportado un dataframe a Excel utilizando xlwings y estoy intentando darle formato como una tabla. Quiero aplicar el estilo “None” pero no puedo entender cómo especificar el “None”. Esta línea funciona: table = sheet.tables.add(source=sheet[“A1″].expand(), name=’TableName’, table_style_name=”TableStyleLight1″) Pero en lugar de “TableStyleLight1” quiero utilizar “None”. He intentado con “”, ”, . . . Read more

xlwings: AddComment genera un error de tipo Texto en pywintypes.com_error

Windows 10, Python 3.6, xlwings 0.24.9 Ejemplo: xlsx_book = xw.books.active sht = xlsx_book.sheets['esta pestaña'] sht.range('B5').value = 3 sht.range('B5').api.AddComment('modelo #3') Aunque los comentarios se inserten, el código todavía muestra lo siguiente: Traceback (most recent call last): File “C:\Users\xxx\OneDrive – xxx.py”, línea xxx, in sht.range(‘B5’).api.AddComment(‘modelo #3’) File “C:\Users\xxx\AppData\Roaming\Python\Python36\site-packages\xlwings_xlwindows.py”, línea 70, en call . . . Read more