Computer Science, asked by janu2154, 8 months ago

A chart object that is placed on a worksheet and saved along with that worksheet.​

Answers

Answered by sanushaedwin222005
0

Answer:

The worksheet class represents an Excel worksheet. It handles operations such as writing data to cells or formatting worksheet layout.

A worksheet object isn’t instantiated directly. Instead a new worksheet is created by calling the add_worksheet() method from a Workbook() object:

workbook = xlsxwriter.Workbook('filename.xlsx') worksheet1 = workbook.add_worksheet() worksheet2 = workbook.add_worksheet() worksheet1.write('A1', 123) workbook.close()

XlsxWriter supports Excels worksheet limits of 1,048,576 rows by 16,384 columns.

worksheet.write()

write(row, col, *args)

Write generic data to a worksheet cell.

Parameters:

row – The cell row (zero indexed).

col – The cell column (zero indexed).

*args – The additional args that are passed to the sub methods such as number, string and cell_format.

Returns:

0: Success.

Returns:

-1: Row or column is out of worksheet bounds.

Returns:

Other values from the called write methods.

Similar questions