Hello
I have a table in Airtable that I fill with data from a Python dataframe - pandas
I run code on a jupyter notebook and it works normally:
from airtable import Airtable
table = Airtable(api_key = "",
base_key ="",
table_name ="")
for num, row in posts_deputados.iterrows():
dicio = {'post_id': row['post_id'],
'text': row['text'],
'post_text': row['post_text'],
'shared_text': row['shared_text'],
'time': row['time'],
'image': row['image'],
'likes': row['likes'],
'comments': row['comments'],
'shares': row['shares'],
'post_url': row['post_url'],
'link': row['link'],
'cpf': row['cpf'],
'post_text_copia': row['post_text_copia'],
'ANO_ELEICAO': row['ANO_ELEICAO'],
'SG_UF': row['SG_UF'],
'DS_CARGO': row['DS_CARGO'],
'SQ_CANDIDATO': row['SQ_CANDIDATO'],
'NM_CANDIDATO': row['NM_CANDIDATO'],
'NM_URNA_CANDIDATO': row['NM_URNA_CANDIDATO'],
'NR_CPF_CANDIDATO': row['NR_CPF_CANDIDATO'],
'SG_PARTIDO': row['SG_PARTIDO'],
'DS_SIT_TOT_TURNO': row['DS_SIT_TOT_TURNO']}
table.insert(dicio)
But this same code when I run a script within Sublime Text appears this error:
HTTPError: 422 Client Error: Unprocessable Entity for url: https://api.airtable.com/v0/appQ47u0M1wtA1JAc/Table 1 (Decoded URL) [Error: {'type': 'INVALID_REQUEST_BODY', 'message': 'Could not parse request body'}]
Please, is there any incompatibility between Airtable and Sublime Text?