Skip to content

Commit 4ab95ad

Browse files
DOC: EX03 fixes on dataframe.plot methods: hexbin, line (#56900)
EX03 fixes on dataframe.plot methods Co-authored-by: Marc Garcia <[email protected]>
1 parent e379692 commit 4ab95ad

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

ci/code_checks.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
8686
pandas.io.formats.style.Styler.format \
8787
pandas.io.formats.style.Styler.highlight_quantile \
8888
pandas.io.formats.style.Styler.background_gradient \
89-
pandas.io.formats.style.Styler.text_gradient \
90-
pandas.DataFrame.plot.hexbin \
91-
pandas.DataFrame.plot.line
89+
pandas.io.formats.style.Styler.text_gradient
9290
RET=$(($RET + $?)) ; echo $MSG "DONE"
9391

9492
fi

pandas/plotting/_core.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1053,9 +1053,9 @@ def __call__(self, *args, **kwargs):
10531053
over the years.
10541054
10551055
>>> df = pd.DataFrame({
1056-
... 'pig': [20, 18, 489, 675, 1776],
1057-
... 'horse': [4, 25, 281, 600, 1900]
1058-
... }, index=[1990, 1997, 2003, 2009, 2014])
1056+
... 'pig': [20, 18, 489, 675, 1776],
1057+
... 'horse': [4, 25, 281, 600, 1900]
1058+
... }, index=[1990, 1997, 2003, 2009, 2014])
10591059
>>> lines = df.plot.line()
10601060
10611061
.. plot::
@@ -1828,8 +1828,8 @@ def hexbin(
18281828
>>> df = pd.DataFrame({
18291829
... 'coord_x': np.random.uniform(-3, 3, size=n),
18301830
... 'coord_y': np.random.uniform(30, 50, size=n),
1831-
... 'observations': np.random.randint(1,5, size=n)
1832-
... })
1831+
... 'observations': np.random.randint(1, 5, size=n)
1832+
... })
18331833
>>> ax = df.plot.hexbin(x='coord_x',
18341834
... y='coord_y',
18351835
... C='observations',

0 commit comments

Comments
 (0)