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 adcf608 commit 5c63b69Copy full SHA for 5c63b69
pandas/tests/tseries/frequencies/test_freq_code.py
@@ -80,19 +80,18 @@ def test_cat(args):
80
with pytest.raises(ValueError, match=msg):
81
to_offset(str(args[0]) + args[1])
82
83
+
84
@pytest.mark.parametrize(
- 'freqstr,expected',
85
+ "freqstr,expected",
86
[
- ('1H','2021-01-01T09:00:00'),
87
- ('1D','2021-01-01T08:00:00'),
88
- ('1W','2021-01-03T08:00:00'),
89
- ('1M','2021-01-31T08:00:00'),
90
- ('1Y','2021-12-31T08:00:00')
+ ("1H","2021-01-01T09:00:00"),
+ ("1D","2021-01-01T08:00:00"),
+ ("1W","2021-01-03T08:00:00"),
+ ("1M","2021-01-31T08:00:00"),
91
+ ("1Y","2021-12-31T08:00:00")
92
]
93
)
-def test_compatibility(freqstr,expected):
94
- ts_np = datetime64('2021-01-01T08:00:00.00')
+def test_compatibility(freqstr,expected):
95
+ ts_np = datetime64("2021-01-01T08:00:00.00")
96
do = to_offset(freqstr)
-
97
- assert ts_np + do == datetime64(expected)
98
+ assert ts_np + do == datetime64(expected)
0 commit comments