File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ Small example of the use of ``origin``:
145
145
ts = pd.Series(np.arange(len (rng)) * 3 , index = rng)
146
146
ts
147
147
148
- Resample with the default behavior 'start_day' (origin is 2000-10-01 00:00:00):
148
+ Resample with the default behavior `` 'start_day' `` (origin is `` 2000-10-01 00:00:00 `` ):
149
149
150
150
.. ipython :: python
151
151
Original file line number Diff line number Diff line change @@ -56,8 +56,9 @@ def test_deprecating_on_loffset_and_base():
56
56
with tm .assert_produces_warning (FutureWarning ):
57
57
df .resample ("3T" , loffset = "0s" ).sum ()
58
58
msg = "'offset' and 'base' cannot be present at the same time"
59
- with pytest .raises (ValueError , match = msg ):
60
- df .groupby ("a" ).resample ("3T" , base = 0 , offset = 0 ).sum ()
59
+ with tm .assert_produces_warning (FutureWarning ):
60
+ with pytest .raises (ValueError , match = msg ):
61
+ df .groupby ("a" ).resample ("3T" , base = 0 , offset = 0 ).sum ()
61
62
62
63
63
64
@all_ts
You can’t perform that action at this time.
0 commit comments