Connecting dataframe to SQL procedure in Python

  database-connection, dataframe, python, sql

I have created the data frame "kpssfirmdate" . Then I used sql procedure to deal with two data frames including "kpssfirmdate", but I get an error that kpssfirmdate does not exist. I searched and found some solutions which seem complicated to me. Idk how to handle with that. Any suggestions? How can I connect my dataframe to this SQL process?enter image description here

Source: Python Questions