Closed leifericf closed 4 years ago
Hi @IRLeif the connector knows what dependencies to install if you tell it that you will be needing pandas (and pyarrow).
We have an optional dependency group called pandas
. Install the connector like this: pip install snowflake-connector-python[pandas]
, documentation is here: https://docs.snowflake.com/en/user-guide/python-connector-pandas.html#installation
Hi @IRLeif the connector knows what dependencies to install if you tell it that you will be needing pandas (and pyarrow). We have an optional dependency group called
pandas
. Install the connector like this:pip install snowflake-connector-python[pandas]
, documentation is here: https://docs.snowflake.com/en/user-guide/python-connector-pandas.html#installation
Aha! It was my mistake. I was unfamiliar with the concept of optional dependency groups in general, and I had missed that part of the Snowflake documentation in particular. After adding [pandas]
to my pip install
command, everything is now working smoothly. Thank you for taking the time to comment.
Python version: 3.7.6
Operating system and processor architecture: Darwin-19.4.0-x86_64-i386-64bit
Component versions in the environment:
To reproduce the error, call the
fetch_pandas_all()
function, like so:That will result in this pyarrow-related error:
I would expect the
snowflake-connector-python
package to install its own dependencies as needed.Note that using the
fetchall()
function works fine:The issue seems to be related to converting the SQL query result to a Pandas dataframe.
Detailed execution log for debugging: