Giter VIP home page Giter VIP logo

Comments (6)

djinnome avatar djinnome commented on July 18, 2024 1

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.

davemt avatar davemt commented on July 18, 2024

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.

TimShawver avatar TimShawver commented on July 18, 2024

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.

djinnome avatar djinnome commented on July 18, 2024

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.

TimShawver avatar TimShawver commented on July 18, 2024

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.

alexander-titov avatar alexander-titov commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.