简体   繁体   中英

How to read and write pandas/pyspark dataframe to Snowflake

I want to populate a snowflake table using the pandas dataframe that I have created. I have the connection to Snowflake - how do I write pandas dataframe to a Snowflake table?

Snowflake has connectors for all most everything same for python

pip install snowflake-connector-python

then you can use

write_pandas() or use standard pandas.DataFrame.to_sql()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM