question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[SETUP] Lux defaults to Pandas when there are no valid actions defined.

See original GitHub issue

C:\ProgramData\Anaconda3\lib\site-packages\IPython\core\formatters.py:345: UserWarning: Lux defaults to Pandas when there are no valid actions defined.

  1. install lux according the document
pip install lux-api

# active Jupyter notebook extension
jupyter nbextension install --py luxwidget
jupyter nbextension enable --py luxwidget
  1. run the demo code from readme.md
import lux
import pandas as pd

df = pd.read_csv("https://raw.githubusercontent.com/lux-org/lux-datasets/master/data/college.csv")
df

and then I cannot get the Toggle Pandas/Lux button, and see below warning message

C:\ProgramData\Anaconda3\lib\site-packages\IPython\core\formatters.py:345: UserWarning:
Lux defaults to Pandas when there are no valid actions defined.

please tell me what I am doing wrong, thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dorisjleecommented, Feb 22, 2021

Hi @jonozw, Yes I think the first warning message is likely caused by df.head(), since the dataframe is not big enough to generate recommendations. It is great to hear that this is working for you now. I’ll close this issue for now, feel free to let us know if there are any issues and questions that come up!

0reactions
jonozwcommented, Feb 22, 2021

it worked…

  1. at the begining, I install lux with pip, then I got the error message.
  2. I modify the code form df->df.head()
  3. I uninstall the lux with pip and reinstall it with conda
  4. modify the code to df again
  5. it worked…

I am not sure whether or not the first error message was caused by df.head()…

but now it worked, I like this project, thanks:)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Source code for lux.core.frame
Executor import * import warnings import traceback import lux ... else: warnings.warn( "\nLux defaults to Pandas when there are no valid actions defined....
Read more >
[BUG] pandas._libs.hashtable.Int64HashTable.get_item ...
When I write this code for this dataset I got a bug: df.intent=['counts_of_ingredients'] df Bug: ...
Read more >
Options and settings — pandas 1.5.2 documentation
Getting and setting options​​ As described above, get_option() and set_option() are available from the pandas namespace. To change an option, call set_option(' ...
Read more >
Lux: Always-on Visualization Recommendations for ... - arXiv
We propose Lux, an always-on framework for accelerating visual insight discovery in dataframe workflows. When users print a dataframe in their notebooks, Lux...
Read more >
toggle pandas/lux not working - OfDesign.net
pip install lux-api Enhanced WMS support for Leaflet, including single-tile/untiled layers, shared WMS sources, and layer identify via GetFeatureInfo. Whether ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found