I have a spreadsheet like below and i have an API which will give data as a list by date like below
[05/06/2019', 10000, 14003, 140, $576.1786404]
[05/07/2019', 11000, 14003, 140, $576.1786404]
[05/08/2019', 50641, 14067, 357, $578.8120356]
All I have to do is update the data for a date if it already exists or insert a new row into the sheet of a new date.
From the above list I have to update data of 05/06/2019 and I have to insert two rows of date 05/07/2019 and 05/08/2019
I have below code and don't know to do next steps to implement
gc = gspread.authorize(creds)
worksheet = gc.open("chethan testing").sheet1
cell_list = worksheet.range('A3:E3')
cell_values = [1,2,3,4,5]
for i, val in enumerate(cell_values):
cell_list[i].value = val
worksheet.update_cells(cell_list)
Can somebody guide me on how to proceed with next steps.?
Thanks in advance