I have a pandas data frame with three columns, and I want to highlight the cells in a specific column that meet a certain condition using pygsheets. How can I do that?
A B C
some_text 65 some_text
def color_my_cell(var):
for i in wks.range('B3:B30'):
if var < 70:
wks.cell( NOT SURE what to do here).color = (1.0,0,1.0,1.0)
df['B'] = df['B'].apply(color_my_cell)
So, for any cells in B < 70, highlight cells blue.