Skip to content

Commit

Permalink
as_unit->astype
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockmendel committed Nov 29, 2023
1 parent 29b1ef5 commit e9d46c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/tests/io/parser/test_read_fwf.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def test_fwf_regression():
parse_dates=True,
date_format="%Y%j%H%M%S",
)
expected.index = expected.index.as_unit("s")
expected.index = expected.index.astype("M8[s]")
tm.assert_frame_equal(result, expected)


Expand Down

0 comments on commit e9d46c5

Please sign in to comment.