Not sure if this would help you now but might help someone else.
Also, seems Gspread Hasn't added this yet...
If you go on the gspread site package - you can add the this to the "models.py" file, I did it righ above the "def insert_row" but realistically you can do it anywhere tbh.
def insert_col(self,values,index=1,value_input_option='RAW'):
body = {
"requests": [
{
"insertDimension": {
"range": {
"sheetId": self.id,
"dimension": "COLUMNS",
"startIndex": index - 1,
"endIndex": index,
}
}
}
]
}
self.spreadsheet.batch_update(body)
range_label = absolute_range_name(self.title, 'A%s' % index)
data = self.spreadsheet.values_update(
range_label,
params={'valueInputOption': value_input_option},
body={'values': [values]},
)
return data
insert_col
method. – Halutzadd_cols
, i've edited it – Prudential