import gspread
API_KEY = '/../../91caf1a6016.json'
SPREADSHEET_ID = 'hlrauXcTXeQZ_H-Kwn5sVucQzWam-kByJsF1VxtscNLo'
scope=[
'https://spreadsheets.google.com/feeds',
'https://www.googleapis.com/auth/drive'
]
result = 'строка с CSV данными, прочитайте из вашего файла'
credentials = ServiceAccountCredentials.from_json_keyfile_name(API_KEY, scope)
gc = gspread.authorize(credentials)
gc.import_csv(SPREADSHEET_ID, result)