MCPcopy Create free account
hub / github.com/scanny/python-pptx / _write_cat_column

Method _write_cat_column

src/pptx/chart/xlsx.py:154–162  ·  view source on GitHub ↗

Write a category column defined by *level* to *worksheet* at offset *col* and formatted with *num_format*.

(self, worksheet, col, level, num_format)

Source from the content-addressed store, hash-verified

152 self._write_cat_column(worksheet, col, level, num_format)
153
154 def _write_cat_column(self, worksheet, col, level, num_format):
155 """
156 Write a category column defined by *level* to *worksheet* at offset
157 *col* and formatted with *num_format*.
158 """
159 worksheet.set_column(col, col, 10) # wide enough for a date
160 for off, name in level:
161 row = off + 1
162 worksheet.write(row, col, name, num_format)
163
164 def _write_series(self, workbook, worksheet):
165 """

Callers 2

_write_categoriesMethod · 0.95

Calls 1

writeMethod · 0.45

Tested by 1