I'm having trouble with the pandas connector for Snowflake.
The last line of this code causes the immediate death of the python kernel. Any suggestions on how to diagnose such a situation?
import pyarrow
import snowflake.connector
import pandas as pd
ctx = snowflake.connector.connect(
user=********,
password=********,
account=********,
warehouse='compute_wh',
database='SNOWFLAKE_SAMPLE_DATA',
schema='WEATHER'
)
cs = ctx.cursor()
cs.execute('select * from weather_14_total limit 10')
cs.fetch_pandas_all()
Note that if fetch_pandas_all()
is replaced with fetchone()
everything works fine.
Thanks in advance.
- Keith
df = cs.fetch_pandas_all()
where df becomes the name of your dataframe. I wouldn't expect that to kill a kernel, but worth a shot, right? – Mike Walton