Skip to content

Commit bf3ee62

Browse files
committed
update hdfstore dtypes test case
1 parent b8ee8f1 commit bf3ee62

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pandas/tests/io/pytables/test_round_trip.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,10 @@ def test_table_values_dtypes_roundtrip(setup_path):
236236
df1["float322"] = 1.0
237237
df1["float322"] = df1["float322"].astype("float32")
238238
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")
241243

242244
store.append("df_mixed_dtypes1", df1)
243245
result = store.select("df_mixed_dtypes1").dtypes.value_counts()
@@ -252,7 +254,9 @@ def test_table_values_dtypes_roundtrip(setup_path):
252254
"int8": 1,
253255
"int64": 1,
254256
"object": 1,
255-
"datetime64[ns]": 2,
257+
"datetime64[s]": 2,
258+
"datetime64[ms]": 1,
259+
"datetime64[ns]": 1,
256260
},
257261
name="count",
258262
)

0 commit comments

Comments
 (0)