Skip to content

Commit

Permalink
TST: Avoid hashing np.timedelta64 without unit (pandas-dev#60416)
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke authored Nov 25, 2024
1 parent 39dcbb4 commit 0b6cece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/tests/test_algos.py
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ def test_value_counts_nat(self):
result_dt = algos.value_counts_internal(dt)
tm.assert_series_equal(result_dt, exp_dt)

exp_td = Series({np.timedelta64(10000): 1}, name="count")
exp_td = Series([1], index=[np.timedelta64(10000)], name="count")
result_td = algos.value_counts_internal(td)
tm.assert_series_equal(result_td, exp_td)

Expand Down

0 comments on commit 0b6cece

Please sign in to comment.