Skip to content

Commit 50e1aeb

Browse files
committed
PeriodDtype needs freq
1 parent 10d2c8a commit 50e1aeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/io/json/test_json_table_schema.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def test_as_json_table_type_bool_dtypes(self, bool_dtype):
150150
assert as_json_table_type(bool_dtype) == 'boolean'
151151

152152
@pytest.mark.parametrize('date_dtype', [
153-
np.datetime64, np.dtype("<M8[ns]"), PeriodDtype(),
153+
np.datetime64, np.dtype("<M8[ns]"), PeriodDtype('D'),
154154
DatetimeTZDtype('ns', 'US/Central')])
155155
def test_as_json_table_type_date_dtypes(self, date_dtype):
156156
# TODO: datedate.date? datetime.time?

0 commit comments

Comments
 (0)