'Python-docx - How to change texts styles of a cell in a existing table

I am adding some text into specifics cells in to my word document with python-docx, but the styles of the added text is 'normal'. I need to change the style of the text to 'estilo_indices', a style that I created on my word document.

Y don't know how to change the style of 'nomal' to 'estilo_indices', or others differents styles of my word document.

This is the code that I use to add the specific text in to the cells

document.tables[7].cell(1, 2).text = str(dict_all_points['ICV_std'])

screen-shot



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source