-
Notifications
You must be signed in to change notification settings - Fork 424
Show a multi-indexed column #18
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
Comments
I had an issue getting this to work as well. I am seeing a JS error:
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] |
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. |
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. |
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). |
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()) |
Hi,
Is it true? I am using Can you please add Example: import pandas
import qgrid
qgrid.show_grid(pandas.DataFrame([[0, 1], [2, 3]], index=[['a', 'a'], ['a1', 'a2']]).T) Result:
Requested result (if the proper The exact separator (comma in the example above) can be also defined via |
Hi,
Is it possible to show a DataFrame where the columns are a MultiIndex such as:
Thanks,
Damien G.
The text was updated successfully, but these errors were encountered: