I am trying to import a pd_DF
to SQL
using a file.ipynb
but it throws an error. If I try the same in a file.py
it does work...
The error appears in the next line:
df2_imputed.to_sql('BBM_DATA', con=engine, index=False, if_exists= 'replace')
The error is:
'AttributeError: 'NoneType' object has no attribute 'replace''
At first, I thought it might be the NaN values inside de DF, but the DF has no NAN
values now...
Can someone please help? Is it possible to work with SQL in .ipynb files ?
Thanks!