Write a category column defined by *level* to *worksheet* at offset *col* and formatted with *num_format*.
(self, worksheet, col, level, num_format)
| 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 | """ |