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 fe0f934 commit 6e27e26Copy full SHA for 6e27e26
pandas/tests/scalar/timedelta/test_timedelta.py
@@ -727,3 +727,13 @@ def test_to_pytimedelta_large_values():
727
result = td.to_pytimedelta()
728
expected = timedelta(days=13343, seconds=86304, microseconds=609987)
729
assert result == expected
730
+
731
732
+def test_timedelta_week_suffix():
733
+ # GH#12691 ensure 'W' suffix works as a string passed to Timedelta
734
+ expected = Timedelta("7 days")
735
+ result = Timedelta(1, unit="W")
736
+ assert result == expected
737
738
+ result = Timedelta("1W")
739
0 commit comments