Skip to content

TypeError: argument of type 'NoneType' is not iterableΒ #505

@Franri3008

Description

@Franri3008

I'm getting the folowwing error:

C:\Users\HP\Anaconda3\lib\site-packages\lux\core\frame.py:632: UserWarning:Traceback (most recent call last):
  File "C:\Users\HP\Anaconda3\lib\site-packages\lux\core\frame.py", line 581, in _ipython_display_
    self.maintain_metadata()
  File "C:\Users\HP\Anaconda3\lib\site-packages\lux\core\frame.py", line 146, in maintain_metadata
    self.compute_metadata()
  File "C:\Users\HP\Anaconda3\lib\site-packages\lux\core\frame.py", line 126, in compute_metadata
    lux.config.executor.compute_dataset_metadata(self)
  File "C:\Users\HP\Anaconda3\lib\site-packages\lux\executor\PandasExecutor.py", line 448, in compute_dataset_metadata
    self.compute_data_type(ldf)
  File "C:\Users\HP\Anaconda3\lib\site-packages\lux\executor\PandasExecutor.py", line 454, in compute_data_type
    if attr in ldf._type_override:
TypeError: argument of type 'NoneType' is not iterable

I get this after trying to display a simple dataframe containing only numerical values between 0.0 and 1.0. This is an extract of my dataframe:

0.812857 0.662857 0.668571 0.620000 0.2 0.333333 0 0.418182
0.790000 0.774286 0.730000 0.727143 0.1 0.000000 1 0.075862
0.862857 0.670000 0.504286 0.552857 0.0 0.333333 0 0.378788
0.735714 0.620000 0.450000 0.498571 0.1 0.000000 0 0.928571
0.815714 0.824286 0.771429 0.674286 0.0 0.333333 0 0.013889

Debugging info:

Package Versions

           Version        
    python          3.9.18
       lux           0.5.1
    pandas           2.2.1
 luxwidget          0.1.11
matplotlib           3.8.4
    altair           5.3.0
   IPython        7.31.1\r
 ipykernel        6.15.2\r
ipywidgets         8.1.2\r

jupyter_client 7.4.9\r
jupyter_core 5.5.0\r
jupyter_server 2.14.0\r
jupyterlab 3.4.4\r
nbclient 0.5.13\r
nbconvert 6.4.4\r
nbformat 5.9.2\r
notebook 6.4.12\r
qtconsole not installed\r
traitlets 5.7.1\r

Widget Setup

βœ… Jupyter Lab Running
❌ luxwidget is installed but currently 'ok'
❌ WARNING: luxwidget is not enabled in Jupyter Lab.You may need to run the following code in your command line:
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install luxwidget

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions