-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
pd.DataFrame type is not supported for State
To Reproduce
class State(pc.State):
data: pd.DataFrameError Message
$ TypeError: State vars must be primitive Python types, Plotly figures, Pandas dataframes, or subclasses of pc.Base. Found var “data” with type <class ‘pandas.core.frame.DataFrame’>.Code
- couldn’t find
pd.DataFramein Valid state var types
# pynecone/utils.py L60
# Valid state var types
PrimitiveType = Union[int, float, bool, str, list, dict, tuple]
StateVar = Union[PrimitiveType, Base, None]Specifics (please complete the following information):
- Python Version: 3.8.10
- Pynecone Version: 0.1.12
- OS: mac OS
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working