私はxlsxファイルを読んでいます。
import openpyxl
book = openpyxl.load_workbook('test.xlsx')
sheet = book.get_sheet_by_name(sheets['DATA'])
allCells = sheet.get_cell_collection()
print allCells
allCells は、openpyxl.cell.Cell オブジェクトの順序付けられていないリストです。allCells は次のようになります。
[<Cell Data.B4>, <Cell Data.A6>, <Cell Data.B6>, <Cell Data.A1>, <Cell Data.B5>, <Cell Data.A3>, <Cell Data.A2>, <Cell Data.A5>, <Cell Data.B1>, <Cell Data.B2>]
このリストを列で並べ替え、次に行インデックスで並べ替えます。これを行う方法についてのアイデアはありますか?