I am reading a csv from and api, and I am able to stream it into a pandas dataframe.
df = pd.read_csv(iterable_to_stream(reply.iter_content()),
skiprows=7,
dtype=str,
na_filter=False)
I checked the dataframe and it all looks good. Then wanted to put that data into an Oracle table. Its only got 65 rows of VARCHAR2(100) so I did this
df.to_sql(name='KR_PERSON_DETAILS_CSV_PD',
con=db.engine,
index=False,
if_exists='append',
dtype={line: types.VARCHAR(100) for line in df.columns}
)
When I do this I get the following message: sqlalchemy.exc.DatabaseError: (cx_Oracle.DatabaseError) ORA-01008: not all variables bound
How can this be? The table is created when I run it and I double checked all the columns.