I am having Oracle Database and I am trying to insert a dataframe into an existing table but getting error of extra arguments. my connection to database is successful.

**My Dataframe**

```
    TMIDS MEM_ID 
1    8    UY2554
2    8    UY2573
3    8    UY2576

```

**My code:**

**Note: the connection coding part is skipped as it is working and is not required here**

```
cursor = connection.cursor()
print("connection successful")
for index, row in df.iterrows():
    cursor.execute("INSERT INTO UCIDBA.dummy_table (TMIDS,MEM_ID) values(?,?)",row.TMIDS, row.MEM_ID)
connection.commit()
cursor.close()
print("inserted in table")

```

I am getting below error

```
cursor.execute("INSERT INTO UCIDBA.dummy_table (TMIDS,MEM_ID) values(?,?)",row.TMIDS, row.MEM_ID)

TypeError: function takes at most 2 arguments (3 given)

```