@@ -97,7 +97,7 @@ def _create_schema(instant=True, axes=None):
9797 'cid_4,EID1,filing,2023-01-01T00:00:01,2020-01-01,2020-12-31,"value 3","value 4",\n '
9898 ),
9999 dtype = "string" ,
100- parse_dates = ["publication_time" , "start_date" , "end_date" ],
100+ parse_dates = ["publication_time" ],
101101 ),
102102 ),
103103 (
@@ -111,7 +111,7 @@ def _create_schema(instant=True, axes=None):
111111 'cid_5,EID1,filing,2023-01-01T00:00:01,2020-01-01,2020-12-31,"Dim 1 Value","value 9","value 10",\n '
112112 ),
113113 dtype = "string" ,
114- parse_dates = ["publication_time" , "start_date" , "end_date" ],
114+ parse_dates = ["publication_time" ],
115115 ),
116116 ),
117117 (
@@ -124,7 +124,7 @@ def _create_schema(instant=True, axes=None):
124124 'cid_3,EID1,filing,2023-01-01T00:00:01,2021-12-31,"Dim 1 Value","ferc:Dimension2Value","value 7","value 8",\n '
125125 ),
126126 dtype = "string" ,
127- parse_dates = ["publication_time" , "date" ],
127+ parse_dates = ["publication_time" ],
128128 ),
129129 ),
130130 ],
@@ -148,12 +148,5 @@ def test_construct_dataframe(table_schema, period, df, in_memory_filing):
148148 .drop ("c_id" , axis = "columns" )
149149 .reset_index ()
150150 )
151- # Make sure date types use correct units
152- expected_df = expected_df .astype (
153- {
154- col : "datetime64[ms]"
155- for col in ["publication_time" , "start_date" , "end_date" , "date" ]
156- if col in expected_df .columns
157- }
158- )
151+ expected_df = expected_df .astype ({"publication_time" : "string" })
159152 pd .testing .assert_frame_equal (expected_df , constructed_df )
0 commit comments