Giter VIP home page Giter VIP logo

Comments (7)

jaladh-singhal avatar jaladh-singhal commented on September 27, 2024 2

@TimShawver Any advancement on this - it will be really helpful?

from qgrid.

den-run-ai avatar den-run-ai commented on September 27, 2024 1

Based on condition, programmatically

On Sun, Aug 30, 2015, 9:56 PM Tim Shawver [email protected] wrote:

Not right now, sorry. Are you looking to manually set the color of a
single cell? Or would you want the color to change automatically based on a
condition, like "if value < 0, make the cell red"?


Reply to this email directly or view it on GitHub
#28 (comment).

from qgrid.

TimShawver avatar TimShawver commented on September 27, 2024

Not right now, sorry. Are you looking to manually set the color of a single cell? Or would you want the color to change automatically based on a condition, like "if value < 0, make the cell red"?

from qgrid.

Wursthub avatar Wursthub commented on September 27, 2024

Same for me, currently I apply something along the lines

df.style.\
        applymap(color_dateofbirth, subset=['dateofbirth']).\
        applymap(color_sex, subset=['sex'])

which results in the error:
TraitError: The 'df' trait of a QgridWidget instance must be a DataFrame, but a value of class 'pandas.io.formats.style.Styler' (i.e. <pandas.io.formats.style.Styler object at 0x7fbcb87b4e48>) was specified.

from qgrid.

anandsimer avatar anandsimer commented on September 27, 2024

+1 if we could apply the color based on the column would be helpful.

    df.style.applymap()  returns Styler obj

qgrid is expecting a dataframe obj.

from qgrid.

LukaPitamic avatar LukaPitamic commented on September 27, 2024

+1 ...also coloring the toolbar would be awesome, now in JL dark theme it doesn't look that nice...

image

from qgrid.

jonsnowseven avatar jonsnowseven commented on September 27, 2024

Hello, any news regarding this?

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.