PablocFonseca / streamlit-aggrid

Implementation of Ag-Grid component for Streamlit

Home Page:https://pypi.org/project/streamlit-aggrid/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot handle Date Column

MesumRaza opened this issue · comments

image

Cannot handle date column

df['Date']=pd.to_datetime(df['Date']).dt.date

Could you please post the code you're using here?
This way I can reproduce the issue locally and fix it.

I think I found the error, I'll update a patch soon, meanwhile cast it to Datetime formats as a workaround

Thankyou. Can you also please post some tutorials how to color code columns? some of links are broken on various webs.

This isssue is fixed in v0.1.6. I also add imedeltas support.
Later this week I'll upload a more comple example with color code on columns. Meanwhile you can check on ag-grid docs

To use with this component you just call (similar to line 113 in examples/example.py):

gb.configure_column("group",cellStyle={'backgroudColor':'darkred'})