Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue] Using lux on Databricks #476

Open
pbezz1 opened this issue May 2, 2022 · 3 comments
Open

[Issue] Using lux on Databricks #476

pbezz1 opened this issue May 2, 2022 · 3 comments

Comments

@pbezz1
Copy link

pbezz1 commented May 2, 2022

I'm trying to use the lux library in a Databricks notebook but I'm getting this warning and error after the df.intent statment:

Out[10]: /databricks/python/lib/python3.8/site-packages/IPython/core/formatters.py:918: UserWarning:
Unexpected error in rendering Lux widget and recommendations. Falling back to Pandas display.
Please report the following issue on Github: https://github.com/lux-org/lux/issues

/databricks/python/lib/python3.8/site-packages/lux/core/frame.py:632: UserWarning:Traceback (most recent call last):
File "/databricks/python/lib/python3.8/site-packages/lux/core/frame.py", line 594, in ipython_display
self.maintain_recs()
File "/databricks/python/lib/python3.8/site-packages/lux/core/frame.py", line 451, in maintain_recs
self._widget = rec_df.render_widget()
File "/databricks/python/lib/python3.8/site-packages/lux/core/frame.py", line 681, in render_widget
widgetJSON = self.to_JSON(self._rec_info, input_current_vis=input_current_vis)
File "/databricks/python/lib/python3.8/site-packages/lux/core/frame.py", line 713, in to_JSON
widget_spec["current_vis"] = LuxDataFrame.current_vis_to_JSON(
File "/databricks/python/lib/python3.8/site-packages/lux/core/frame.py", line 736, in current_vis_to_JSON
current_vis_spec["allcols"] = False
TypeError: 'NoneType' object does not support item assignment

@dorisjlee
Copy link
Member

Hi @pbezz1, Thank you for reporting this issue! Could you share the code and data you used to help us reproduce and debug this issue?

@pbezz1
Copy link
Author

pbezz1 commented May 3, 2022

In a Databricks environment:

  1. create a new notebook
  2. Enter the following script:

!pip install lux

import pandas as pd
import lux

Load dataset

df = pd.read_csv("data/abcdefg.csv")

df.intent = ['col1','col2']
df

The above error is shown.

@dorisjlee
Copy link
Member

Hi @pbezz1, What does the data/abcdefg.csv look like? Do you mind sending a sample? I believe this is an issue that is caused by Lux based on the dataset, but not something specific to Databricks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants