Skip to content

Commit b55d7d1

Browse files
natmokvalpmhatre1
authored andcommitted
CLN: replace deprecated freqs H/M with h/ME in tests for plotting (pandas-dev#57877)
cln: correct deprecated freqs H, M in tests for plotting
1 parent da384a8 commit b55d7d1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pandas/tests/plotting/frame/test_frame_subplots.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ def test_subplots_timeseries_y_axis_not_supported(self):
187187
data = {
188188
"numeric": np.array([1, 2, 5]),
189189
"period": [
190-
pd.Period("2017-08-01 00:00:00", freq="H"),
191-
pd.Period("2017-08-01 02:00", freq="H"),
192-
pd.Period("2017-08-02 00:00:00", freq="H"),
190+
pd.Period("2017-08-01 00:00:00", freq="h"),
191+
pd.Period("2017-08-01 02:00", freq="h"),
192+
pd.Period("2017-08-02 00:00:00", freq="h"),
193193
],
194194
"categorical": pd.Categorical(
195195
["c", "b", "a"], categories=["a", "b", "c"], ordered=False

pandas/tests/plotting/test_datetimelike.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ def test_mixed_freq_shared_ax_twin_x(self):
927927
@pytest.mark.xfail(reason="TODO (GH14330, GH14322)")
928928
def test_mixed_freq_shared_ax_twin_x_irregular_first(self):
929929
# GH13341, using sharex=True
930-
idx1 = date_range("2015-01-01", periods=3, freq="M")
930+
idx1 = date_range("2015-01-01", periods=3, freq="ME")
931931
idx2 = idx1[:1].union(idx1[2:])
932932
s1 = Series(range(len(idx1)), idx1)
933933
s2 = Series(range(len(idx2)), idx2)

0 commit comments

Comments
 (0)