lux-org / lux

Automatically visualize your pandas dataframe via a single print! 📊 💡
Apache License 2.0
5.15k stars 365 forks source link

Unexpected error in rendering Lux widget and recommendations. Falling back to Pandas display. #423

Closed nehadamele closed 2 years ago

nehadamele commented 2 years ago

RecursionError: maximum recursion depth exceeded while calling a Python object

import lux
import pandas as pd

# creating a Dataframe object 
df = pd.DataFrame(dict_country)

df

I am attaching the log messages; hopefully that might be helpful in following where the issue might be. error.log

lux version: 0.4.0 panda version: 1.2.5

dorisjlee commented 2 years ago

Hi @nehadamele, Thanks for reporting this issue! Could you provide the dataset or a sample of the data dict_country that led to this error? This can help us debug and pinpoint why this error is showing up!

dani-lbnl commented 2 years ago

I have noticed that a shutdown to the kernel and then restart handles the problem sometimes. Perhaps try running the example in https://github.com/lux-org/lux-binder/blob/master/tutorial/1-specifying-intent.ipynb and if it does't render, then there might be some installation issue... my 2 cents..

Emmastro commented 2 years ago

I was getting this error when I had a column with inconsistent data types. The column was supposed to be a Timestamp column but had a few integer values, so the column type was just of type object. Lux was trying to compare values from this column and raised the error: TypeError: '<' not supported between instances of 'Timestamp' and 'int' then fall back to the default pandas table

dani-lbnl commented 2 years ago

Hi folks, different problem here: pd renders in lux, I can toggle, but it's not possible to scroll horizontally to see all the graphs - the arrow just does not work. Any thoughts?

cgarciae commented 2 years ago

Looked into this but I couldn't reproduce it with the 1-specifying-intent notebook as suggested by @dani-lbnl.

dani-lbnl commented 2 years ago

yeap, @cgarciae, problem persists, thoughts?

labanyamukhopadhyay commented 2 years ago

Hi @dani-lbnl, when clicking into the right side of the widget are you not able to scroll/ see a scrollbar like the one below? You could try running pip install --upgrade lux-api in your terminal and then run lux in your Jupyter Notebook

Screen Shot 2022-03-21 at 1 55 58 AM
tbnsilveira commented 2 years ago

I faced the same problem today. Running lux.debug_info() showed versions lux 0.5.1 and pandas 1.2.5. Upgrading my pandas package to version 1.2.5 solved the issue.

adrohan19 commented 2 years ago

I've been getting the same "Unexpected error in rendering Lux widget and recommendations. Falling back to Pandas display" issue. I upgraded pandas and Lux, and fixed any temporal issues, any idea what could be going wrong?

dorisjlee commented 2 years ago

Thanks for your question @adrohan19. The Falling back to Pandas display error can stem from many different issues. Could you create a separate issue with your code and data so that we can reproduce this issue? Thanks!