Reputation: 685
So I am playing with google spreadsheets and there is a handy feature to freeze first row or/and first column. But is there a way to do this through pygsheets?
Or maybe other python library?
Upvotes: 5
Views: 1198
Reputation: 13
you can try this:
import pygsheets
client = pygsheets.authorize(service_account_file='your json file address')
sh = client.open('your spreadsheet title')
#if you have multiple worksheets
worksheet_names = ['wks1 title','wks2 title',...]
for name in worksheet_names:
ws = sh.worksheet_by_title(name)
ws.frozen_rows = 1
Upvotes: 0