Write a column of data starting from (row, col). Args: row: The cell row (zero indexed). col: The cell column (zero indexed). data: A list of tokens to be written with write(). format: An optional cell Format object. R
(
self, row: int, col: int, data, cell_format: Optional[Format] = None
)
| 1530 | |
| 1531 | @convert_cell_args |
| 1532 | def write_column( |
| 1533 | self, row: int, col: int, data, cell_format: Optional[Format] = None |
| 1534 | ) -> Union[Literal[0], Any]: |
| 1535 | """ |
| 1536 | Write a column of data starting from (row, col). |
| 1537 | |
| 1538 | Args: |
| 1539 | row: The cell row (zero indexed). |
| 1540 | col: The cell column (zero indexed). |
| 1541 | data: A list of tokens to be written with write(). |
| 1542 | format: An optional cell Format object. |
| 1543 | Returns: |
| 1544 | 0: Success. |
| 1545 | other: Return value of write() method. |
| 1546 | |
| 1547 | """ |
| 1548 | for token in data: |
| 1549 | error = self._write(row, col, token, cell_format) |
| 1550 | if error: |
| 1551 | return error |
| 1552 | row += 1 |
| 1553 | |
| 1554 | return 0 |
| 1555 | |
| 1556 | @convert_cell_args |
| 1557 | def insert_image( |