Skip to content

Commit f1c86af

Browse files
add deleted tests and whatsnew
1 parent 2b18113 commit f1c86af

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

doc/source/whatsnew/v0.25.0.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ including other versions of pandas.
1818

1919
Other Enhancements
2020
^^^^^^^^^^^^^^^^^^
21-
22-
-
23-
-
24-
-
21+
:func:`DataFrame.plot` allows to expose symlog scaling for axis.
2522

2623

2724
.. _whatsnew_0250.api_breaking:

pandas/tests/plotting/test_frame.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,14 @@ def test_logscales(self):
258258
assert ax.get_xscale() == 'symlog'
259259
assert ax.get_yscale() == 'symlog'
260260

261+
@pytest.mark.parametrize("wrong_input", ["sm", "symlog"])
262+
def test_invalid_logscale(self, wrong_input):
263+
df = DataFrame({'a': np.arange(100)}, index=np.arange(100))
264+
265+
msg = "Valid inputs are boolean, None and 'sym'."
266+
with pytest.raises(ValueError, match=msg):
267+
df.plot(logy=wrong_input)
268+
261269
@pytest.mark.slow
262270
def test_xcompat(self):
263271
import pandas as pd

0 commit comments

Comments
 (0)