Comments (6)
Thanks for letting me know. I look forward to beautiful, multi-indexed qgrid columns in the future. In the meantime, this is a reasonable workaround:
from IPython.display import HTML
HTML(df.to_html())
from qgrid.
I had an issue getting this to work as well. I am seeing a JS error:
SyntaxError: Unexpected identifier
One temporary workaround until there is a proper fix is to flatten the columns as follows:
df.columns = [' '.join(col).strip() for col in df.columns.values]
http://stackoverflow.com/a/14508355
from qgrid.
Currently our code attempts to flatten any multi index columns, so no it's not currently possible. Adding better support for multi index columns would be a nice enhancement though.
from qgrid.
Any progress on this front? It would be really helpful to interactively explore multi-index data frames. It is the main limitation to qgrid that I have found so far.
from qgrid.
Sorry, no progress on this yet (as mentioned in the dup issue). I did some investigation today but this is not yet at the top of my qgrid work queue (I have a couple of other PRs to finish up first).
from qgrid.
Hi,
Currently our code attempts to flatten any multi index columns, so no it's not currently possible.
Is it true? I am using 1.1.1
version and there is not auto flattening.
Can you please add qrgid
option for that?
Example:
import pandas
import qgrid
qgrid.show_grid(pandas.DataFrame([[0, 1], [2, 3]], index=[['a', 'a'], ['a1', 'a2']]).T)
Result:
NotImplementedError: orient='table' is not supported for MultiIndex
Requested result (if the proper qgrid
option is enabled):
The exact separator (comma in the example above) can be also defined via qgrid
option.
from qgrid.
Related Issues (20)
- grid does not support add_rows on an empty dataframe. Could we stop the user from removing the last row?
- qgrid incompatible with ipywidgets==8.0.0a6 due to decorator usage HOT 1
- Qgrid working with Modern Jupyter Lab (3.2 and beyond)
- Set Formatter for Column Definitions
- AttributeError: 'DataFrame' object has no attribute 'map'
- [Security] Workflow main.yml is using vulnerable action actions/checkout
- missing 1 required positional argument: 'widget' HOT 3
- qgrid not working in Binder notebook
- update for ipywidgets 8 compatibility HOT 1
- qgrid post link fails on environment build HOT 2
- REPO IS NO LONGER MAINTAINED AND DOES NOT SUPPORT JUPYTERLAB>=3.0.0 HOT 8
- QGrid is not working with NB-viewer.
- Internet connection required for qgrid 1.1.3 HOT 1
- Here, working version HOT 12
- filter_changed is not recognised in .on() HOT 1
- "ImportError: cannot import name 'Mapping' from 'collections' (C:\ProgramData\anaconda3\lib\collections\__init__.py)"
- post-link script failed for package conda-forge::qgrid-1.3.1-py39hcbf5309_2
- Filter not working HOT 1
- Detecting row selected in Python shiny
- Cannot edit the table using responsive setting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qgrid.