# Authorize Spreadsheet Access
gc = pygsheets.authorize(service_file=gServiceAccAuthFile, retries=1)
# Open spreadsheet
sh = gc.open_by_key(gSheetKey)
# Open Worksheet
wks = sh.worksheet_by_title(gWorksheetName)
mydict = wks.get_values('A1','A55',returnas='cell')
print(mydict[5])
[<Cell A6 'MY CELL CONTENTS'>]
I'd like to find out what this data type is, and how I can use the separate values (Cell A6
(or just A6
) and MY CELL CONTENTS
).
I've tried print(mydict[5][0])
but this just returns:
<Cell A6 'MY CELL CONTENTS'>