I am trying to store data frame into mysql after converting it to dictionary
# a_two.fillna(0)
for data in a_two:
fav_two = BankData(process_date=data.get('Process date'), description=data.get(
'Description'), debit=data.get('Debit'), credit=data.get('Credit'), balance=data.get('Balance'), category=data.get('Categories'))
db.session.add(fav_two)
db.session.commit()
print("Bank data submitted")
return render_template("index.html")