Skip to content

Commit 201cbf6

Browse files
committed
use Timedelta instead of pd.Timedelta
1 parent bff99a8 commit 201cbf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/arrays/test_timedeltas.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ def test_total_seconds(self, unit, tda):
6969

7070
def test_timedelta_array_total_seconds(self):
7171
# GH34290
72-
expected = pd.Timedelta("2 min").total_seconds()
72+
expected = Timedelta("2 min").total_seconds()
7373

74-
result = pd.array([pd.Timedelta("2 min")]).total_seconds()[0]
74+
result = pd.array([Timedelta("2 min")]).total_seconds()[0]
7575
assert result == expected
7676

7777
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)