Skip to content

Commit

Permalink
use Timedelta instead of pd.Timedelta
Browse files Browse the repository at this point in the history
  • Loading branch information
ntachukwu committed Aug 24, 2022
1 parent bff99a8 commit 201cbf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/tests/arrays/test_timedeltas.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ def test_total_seconds(self, unit, tda):

def test_timedelta_array_total_seconds(self):
# GH34290
expected = pd.Timedelta("2 min").total_seconds()
expected = Timedelta("2 min").total_seconds()

result = pd.array([pd.Timedelta("2 min")]).total_seconds()[0]
result = pd.array([Timedelta("2 min")]).total_seconds()[0]
assert result == expected

@pytest.mark.parametrize(
Expand Down

0 comments on commit 201cbf6

Please sign in to comment.