GithubHelp home page GithubHelp logo

astrowonk / dash_dataframe_table Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 36 KB

Bootstrap dash tables from dataframes with easy hyperlinks

License: MIT License

Python 100.00%
dash plotly-dash dataframe pandas tables hyperlinks

dash_dataframe_table's Introduction

dash_dataframe_table's People

Contributors

astrowonk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dash_dataframe_table's Issues

SyntaxError

hi!
thanks for this awesome project!

I have an issue when i try to import it:

File "C:\Anaconda3\lib\site-packages\dash_dataframe_table_init_.py", line 114
if cell_style_entry := cell_style_dict.get(col_name):
^
SyntaxError: invalid syntax

Can you help me out a bit?

Update:

I figured out that its due to python version.

I have another question:
can i format cell based on value in different column?

is there a better format for the conditional dictionary?

The dictionary of columns and lists of tuples isn't great. I have a local branch where one can use pandas query strings but then you have to define the column twice, and it's not as flexible as a callable. Still, they don't see super readable or intuitive. The query style looks like:

cell_style_dict = {
    'Company': ('Company == "Google"', {
        'className': 'table-info'
    }),
    'Value2': ("4 < Value2 < 30", {
        'background-color': '#7fffd4'
    }),
}

Maybe queries and callables and drop the method of using a list?

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.