Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: dataframe.to_sql(…) 出现table not exists

To improve efficiency, please provide the following information. A clear problem description can help resolve the issue faster:
[Overview]
When using pandas.DataFrame.to_sql(…), an error is reported stating that the table does not exist. Moreover, the non-existent table is not the one I intend to write to.
The code is as follows:
Error content:
I intend to write to the event_base.XqbUser table, but the error reports that another db.table does not exist.
[Application Framework and Development Adaptation Business Logic]
[Background] Operations performed
[Phenomenon] Business and database phenomena
[Problem] Current issue encountered
[Business Impact]
[TiDB Version] V6.5.0
[Attachments] Relevant logs and monitoring