Load csv file into SnowFlake table using python

Posted on by Sumit Kumar

Load csv file into SnowFlake table using python

In this blog we will learn how to load any csv file into Snowflake table using python.

Below example will connect to my trial snowflake account and it will create table student_math_mark.

And load csv file into STAGE table first then from STAGE table it will load csv file into table student_math_mark.

Using python code we are also selecting virtual warehouse,database and schema. After loading the csv file into table we are querying from table and displaying the result in console.

Below is the python code :-

python code to Load csv file into SnowFlake table

After executing above python code we can login to snowflake account and can query on the created table.

 

snowflake view after inserting csv file data

 

 

 

 

4 Responses to Load csv file into SnowFlake table using python

  • Dominica L says:

    Thank you for your help. Really appreciated your example.

  • SAROJ GUPTA says:

    Brilliant… each step with guidance… Thanks a lot

  • Leave a Reply

    Your email address will not be published. Required fields are marked *

    *

    *