We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faa0e0b commit 665d932Copy full SHA for 665d932
pandas/tests/reshape/concat/test_datetimes.py
@@ -15,6 +15,7 @@
15
Timestamp,
16
concat,
17
date_range,
18
+ to_timedelta,
19
)
20
import pandas._testing as tm
21
@@ -515,12 +516,10 @@ def test_concat_period_other_series(self):
515
516
517
518
def test_concat_timedelta64_block():
- from pandas import to_timedelta
519
-
520
rng = to_timedelta(np.arange(10), unit="s")
521
522
df = DataFrame({"time": rng})
523
524
result = concat([df, df])
525
- assert (result.iloc[:10]["time"] == rng).all()
526
- assert (result.iloc[10:]["time"] == rng).all()
+ tm.assert_frame_equal(result.iloc[:10], df)
+ tm.assert_frame_equal(result.iloc[10:], df)
0 commit comments