MCPcopy
hub / github.com/jmcnamara/XlsxWriter / write_column

Method write_column

xlsxwriter/worksheet.py:1532–1554  ·  view source on GitHub ↗

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
    )

Source from the content-addressed store, hash-verified

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(

Callers 15

test_create_fileMethod · 0.80
test_create_fileMethod · 0.80
test_create_fileMethod · 0.80
test_create_fileMethod · 0.80
test_create_fileMethod · 0.80
test_create_fileMethod · 0.80
test_create_fileMethod · 0.80
test_unused_chartMethod · 0.80
test_create_fileMethod · 0.80
test_create_fileMethod · 0.80
test_create_fileMethod · 0.80
test_create_fileMethod · 0.80

Calls 1

_writeMethod · 0.95

Tested by 15

test_create_fileMethod · 0.64
test_create_fileMethod · 0.64
test_create_fileMethod · 0.64
test_create_fileMethod · 0.64
test_create_fileMethod · 0.64
test_create_fileMethod · 0.64
test_create_fileMethod · 0.64
test_unused_chartMethod · 0.64
test_create_fileMethod · 0.64
test_create_fileMethod · 0.64
test_create_fileMethod · 0.64
test_create_fileMethod · 0.64