Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

How do I use dask in the Python tool?

nyck3333
8 - Asteroid

Using designerbasetools_venv

 

I can do:

 

import dask

 

but can't do

 

import dask.dataframe as dd

 

nyck3333_0-1686755367678.png

 

2 REPLIES 2
geraldo
13 - Pulsar

@nyck3333 

 

Have you already done this type of installation in alteryx to see if it resolves the error messages

 

geraldo_0-1686774136341.png

 

nyck3333
8 - Asteroid

Hi, that's right, I forgot about that.

But there's an error after installing dask.dataframe when I try to import it,

 

```

import dask
import dask.dataframe as dd

```

I get

 

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-43-efb632f5eb93> in <module>
      1 import dask
----> 2 import dask.dataframe as dd

c:\users\nycki_gq3buqc\appdata\local\alteryx\bin\miniconda3\envs\designerbasetools_venv\lib\site-packages\dask\dataframe\__init__.py in <module>
      1 try:
----> 2     import dask.dataframe._pyarrow_compat
      3     from dask.base import compute
      4     from dask.dataframe import backends, dispatch, rolling
      5     from dask.dataframe.core import (

c:\users\nycki_gq3buqc\appdata\local\alteryx\bin\miniconda3\envs\designerbasetools_venv\lib\site-packages\dask\dataframe\_pyarrow_compat.py in <module>
     45     else:
     46         # Only `string[pyarrow]` is implemented, so just patch that
---> 47         copyreg.dispatch_table[pd.arrays.ArrowStringArray] = reduce_arrowextensionarray

AttributeError: module 'pandas.arrays' has no attribute 'ArrowStringArray'
Labels
Top Solution Authors