Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Python to clear all the cell values in google sheet before adding data

I have a Google Spreadsheet which I'm populating with values using a python script and the SQL query. I need to run the script every one hour, I'd like the script to first clear all the data from the rows before populating it, that way I have a fresh set of data every time I run the script.

like image 611
beenuntz Avatar asked Apr 11 '26 00:04

beenuntz


1 Answers

What you are looking for seems to be: gspread.Worksheet.clear()

like image 92
norok2 Avatar answered Apr 13 '26 12:04

norok2



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!