Skip to content

Commit

Permalink
Merge pull request #1 from msabramo/PablocFonsecaGH-22
Browse files Browse the repository at this point in the history
Fix PablocFonsecaGH-22 (TypeError with Streamlit 0.84)
  • Loading branch information
tonylegend committed Jul 11, 2021
2 parents 3778b30 + 18a0aff commit 8178daf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions st_aggrid/__init__.py
Expand Up @@ -168,6 +168,8 @@ def cast_to_serializable(value):
raise(ex)

if component_value:
if isinstance(component_value, str):
component_value = simplejson.loads(component_value)
frame = pd.DataFrame(component_value["rowData"])
original_types = component_value["originalDtypes"]

Expand Down

0 comments on commit 8178daf

Please sign in to comment.