@@ -390,7 +390,7 @@ def test_convert_pandas_type_to_json_field_categorical(self, kind,
390
390
({'type' : 'integer' }, 'int64' ),
391
391
({'type' : 'number' }, 'float64' ),
392
392
({'type' : 'boolean' }, 'bool' ),
393
- ({'type' : 'duration' }, 'timedelta64' ),
393
+ ({'type' : 'duration' }, 'timedelta64[ns] ' ),
394
394
({'type' : 'datetime' }, 'datetime64[ns]' ),
395
395
({'type' : 'datetime' , 'tz' : 'US/Hawaii' }, 'datetime64[ns, US/Hawaii]' ),
396
396
({'type' : 'any' }, 'object' ),
@@ -499,6 +499,7 @@ class TestTableOrientReader(object):
499
499
'level_0' ])
500
500
@pytest .mark .parametrize ("vals" , [
501
501
{'ints' : [1 , 2 , 3 , 4 ]},
502
+ {'timedeltas' : pd .timedelta_range ('1H' , periods = 4 , freq = 'T' )},
502
503
{'objects' : ['a' , 'b' , 'c' , 'd' ]},
503
504
{'date_ranges' : pd .date_range ('2016-01-01' , freq = 'd' , periods = 4 )},
504
505
{'categoricals' : pd .Series (pd .Categorical (['a' , 'b' , 'c' , 'c' ]))},
@@ -516,7 +517,6 @@ def test_read_json_table_orient(self, index_nm, vals, recwarn):
516
517
@pytest .mark .parametrize ("index_nm" , [
517
518
None , "idx" , "index" ])
518
519
@pytest .mark .parametrize ("vals" , [
519
- {'timedeltas' : pd .timedelta_range ('1H' , periods = 4 , freq = 'T' )},
520
520
{'timezones' : pd .date_range ('2016-01-01' , freq = 'd' , periods = 4 ,
521
521
tz = 'US/Central' )}])
522
522
def test_read_json_table_orient_raises (self , index_nm , vals , recwarn ):
@@ -530,7 +530,7 @@ def test_comprehensive(self):
530
530
{'A' : [1 , 2 , 3 , 4 ],
531
531
'B' : ['a' , 'b' , 'c' , 'c' ],
532
532
'C' : pd .date_range ('2016-01-01' , freq = 'd' , periods = 4 ),
533
- # 'D': pd.timedelta_range('1H', periods=4, freq='T'),
533
+ 'D' : pd .timedelta_range ('1H' , periods = 4 , freq = 'T' ),
534
534
'E' : pd .Series (pd .Categorical (['a' , 'b' , 'c' , 'c' ])),
535
535
'F' : pd .Series (pd .Categorical (['a' , 'b' , 'c' , 'c' ],
536
536
ordered = True )),
0 commit comments