Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否有上传数据框并在 Exasol 中创建新表的方法?import_from_pandas 假设表已经存在。我们需要单独运行 SQL 来创建表吗?对于其他数据库,如果表不存在,to_sql 可以创建表。
是的,正如你提到import_from_pandas的需要一张桌子。因此,您需要在写入之前创建一个表。您可以在使用之前运行 SQLcreate table ...脚本。还需要一个表,因为根据文档,它将被转换为 SQL命令。connection.executeimport_from_pandasto_sqlinsert
import_from_pandas
create table ...
connection.execute
to_sql
insert