Get data from specific sheets in google sheet and extract specific columns from it using gspread

I am trying to get specific column data out of specific sheets in one big google sheet. For example, I have a list of sheets Sheets = [‘Sheet 1’, ‘Sheet 2’, ‘Sheet 3’] and from these sheets, I want to retrieve specific columns like Column_headers = [‘A’, ‘B’] What I am doing right now is… Read More Get data from specific sheets in google sheet and extract specific columns from it using gspread

Formatting issues with Python amd GSpread

I have this panda Data Frame (DF1). DF1= DF1.groupby([‘Name’, ‘Type’, ‘Metric’]) DF1= DF1.first() If I output to df1.to_excel("output.xlsx"). The format is correct see bellow : But when I upload to my google sheets using python and GSpread from gspread_formatting import * worksheet5.clear() set_with_dataframe(worksheet=worksheet1, dataframe=DF1, row=1, include_index=True, include_column_header=True, resize=True) That’s the output How can I keep… Read More Formatting issues with Python amd GSpread

update value in google sheet with if condition in another column using python

I have a similar data as below in google sheet. I want to update the pageId for pagename "abc". I’m able to update manually passing B3 sheet.update(‘B3′,’updated_value’) but How should I get B3 by adding a if condition where pagename=abc in python code. Need help. >Solution : If your provided script in your comment is… Read More update value in google sheet with if condition in another column using python