I have a dataframe with the the file Ids and the content I want to put in the description. I'm using pydrive and this code works fine for txt files but gives an error when I try to update the description of PNG files. Thanks!
for ind in df.index:
file1 = drive.CreateFile({'id': df['ID'][ind]})
file1.Upload()
# adding to existing description if any
file1['description'] = file1['description'] + "\n" + df['Content'][ind]
file1.Upload()
print('description: %s' % file1['description'])
the error is: in getitem raise KeyError(e) KeyError: KeyError('description')