Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dataframe (de)serialization #600

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Next Next commit
Add failing test with a dataframe that has datetimes in it
Carlson, Eric Thomas committed Feb 3, 2022
commit d90d216d911d9acc3fc8b565b64d6963d119144c
5 changes: 4 additions & 1 deletion tests/API1/testjsonserialization.py
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ class TestSet(param.Parameterized):
__test__ = False

numpy_params = ['r','y']
pandas_params = ['s','t','u','z']
pandas_params = ['s','t','u','z','ab']
conditionally_unsafe = ['f', 'o']

a = param.Integer(default=5, doc='Example doc', bounds=(2,30), inclusive_bounds=(True, False))
@@ -73,6 +73,9 @@ class TestSet(param.Parameterized):
y = None if np is None else param.Array(default=None)
z = None if pd is None else param.DataFrame(default=None, allow_None=True)
aa = param.Tuple(default=None, allow_None=True, length=1)
ab = None if pd is None else param.DataFrame(default=pd.DataFrame(
{'A':[datetime.datetime(year,1,1) for year in range(2020,2023)], 'B':[1.1,2.2,3.3]}),
columns=(1,4), rows=(2,5))


test = TestSet(a=29)