I am trying to work with openpyxl following a Programming with Mosh Python course. I can't open cells when using the .cell
method. This happens for me when calling the cell by string as well. Any help welcome. Thank you.
Here's my code:
import openpyxl as xl
wb = xl.load_workbook('transactions.xlsx')
sheet = wb['Sheet1']
cell = sheet.cell(1, 1)
print(cell)
# prints <Cell 'Sheet'.A1> without actual cell information