Populate Data First by Row then by Column

Contents
[ ]

Putting data in the sequence A1, B1, A2, B2 is faster than A1, A2, B1, B2. If there are many cells in a worksheet and you follow the second sequence, that is, you’re filling the data row by row, this tip can make the program much faster.

from aspose.cells import Workbook
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET
# The path to the documents directory.
dataDir = RunExamples.GetDataDir(".")
# Create a workbook
workbook = Workbook()
# Populate Data into Cells
cells = workbook.worksheets[0].cells
cells.get("A1").put_value("data1")
cells.get("B1").put_value("data2")
cells.get("A2").put_value("data3")
cells.get("B2").put_value("data4")
# Save workbook
workbook.save(dataDir + "output_out.xlsx")