Skip to content

Commit f8d29d9

Browse files
freq='B' is deprecated? issue 53446
1 parent 8bbfea4 commit f8d29d9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/tests/plotting/test_datetimelike.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -862,15 +862,12 @@ def test_mixed_freq_lf_first_hourly(self):
862862
for line in ax.get_lines():
863863
assert PeriodIndex(data=line.get_xdata()).freq == "min"
864864

865-
@pytest.mark.filterwarnings(r"ignore:PeriodDtype\[B\] is deprecated:FutureWarning")
866865
def test_mixed_freq_irreg_period(self):
867866
ts = Series(
868867
np.arange(30, dtype=np.float64), index=date_range("2020-01-01", periods=30)
869868
)
870869
irreg = ts.iloc[[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 16, 17, 18, 29]]
871-
msg = r"PeriodDtype\[B\] is deprecated"
872-
with tm.assert_produces_warning(FutureWarning, match=msg):
873-
rng = period_range("1/3/2000", periods=30, freq="B")
870+
rng = period_range("1/3/2000", periods=30, freq="D")
874871
ps = Series(np.random.default_rng(2).standard_normal(len(rng)), rng)
875872
_, ax = mpl.pyplot.subplots()
876873
irreg.plot(ax=ax)

0 commit comments

Comments
 (0)