File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -236,8 +236,10 @@ def test_table_values_dtypes_roundtrip(setup_path):
236
236
df1 ["float322" ] = 1.0
237
237
df1 ["float322" ] = df1 ["float322" ].astype ("float32" )
238
238
df1 ["bool" ] = df1 ["float32" ] > 0
239
- df1 ["time1" ] = Timestamp ("20130101" )
240
- df1 ["time2" ] = Timestamp ("20130102" )
239
+ df1 ["time_s_1" ] = Timestamp ("20130101" )
240
+ df1 ["time_s_2" ] = Timestamp ("20130101 00:00:00" )
241
+ df1 ["time_ms" ] = Timestamp ("20130101 00:00:00.000" )
242
+ df1 ["time_ns" ] = Timestamp ("20130102 00:00:00.000000000" )
241
243
242
244
store .append ("df_mixed_dtypes1" , df1 )
243
245
result = store .select ("df_mixed_dtypes1" ).dtypes .value_counts ()
@@ -252,7 +254,9 @@ def test_table_values_dtypes_roundtrip(setup_path):
252
254
"int8" : 1 ,
253
255
"int64" : 1 ,
254
256
"object" : 1 ,
255
- "datetime64[ns]" : 2 ,
257
+ "datetime64[s]" : 2 ,
258
+ "datetime64[ms]" : 1 ,
259
+ "datetime64[ns]" : 1 ,
256
260
},
257
261
name = "count" ,
258
262
)
You can’t perform that action at this time.
0 commit comments