Skip to content

ENH: Allow column grouping in DataFrame.plot #29944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 62 commits into from
Jun 9, 2022
Merged
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
469eff8
WIP
NicolasHug Dec 1, 2019
b96a659
minimal test
NicolasHug Dec 1, 2019
c5b187b
Merge branch 'master' of https://github.com/pandas-dev/pandas into su…
NicolasHug Jan 17, 2020
99cc049
formatted files
NicolasHug Jan 17, 2020
06da910
linting again
NicolasHug Jan 17, 2020
49c728a
Merge branch 'master' of https://github.com/pandas-dev/pandas into su…
NicolasHug Mar 30, 2020
b370ba5
Check number of lines and labels
NicolasHug Mar 30, 2020
d1a2ae0
Added input checks
NicolasHug Mar 30, 2020
10ac363
some comments
NicolasHug Mar 30, 2020
9774d42
Whatsnew entry
NicolasHug Mar 30, 2020
572de08
More tests
NicolasHug Mar 30, 2020
4519f22
Skip test if no scipy for kde
NicolasHug Mar 30, 2020
c6edb9f
Merge branch 'master' into subplot_groups
NicolasHug Apr 5, 2020
73dd7eb
Merge branch 'master' of https://github.com/pandas-dev/pandas into su…
NicolasHug Apr 14, 2020
b804e57
Address comments
NicolasHug Apr 14, 2020
d7ee47c
fix docstring
NicolasHug Apr 14, 2020
8fb298d
Added error when columns are fouund in multiple subplots
NicolasHug Apr 14, 2020
d84f356
Merge branch 'subplot_groups' of github.com:NicolasHug/pandas into su…
NicolasHug Apr 14, 2020
ba0f982
sorted imports
NicolasHug Apr 14, 2020
fe98b86
Merge branch 'master' of https://github.com/pandas-dev/pandas into su…
NicolasHug Jul 21, 2020
f81d295
Added type annotations
NicolasHug Jul 21, 2020
8255405
some more
NicolasHug Jul 21, 2020
f54459e
typos
NicolasHug Jul 21, 2020
f962425
Addressed comments
NicolasHug Jul 21, 2020
dda80b3
Specify stricter output type
NicolasHug Jul 21, 2020
a457b38
Again
NicolasHug Jul 21, 2020
8d85ba9
hopefully fix mypy?
NicolasHug Jul 21, 2020
bbaeffa
Merge branch 'master' of https://github.com/pandas-dev/pandas into su…
NicolasHug Jul 29, 2020
81f2a7f
Merge branch 'master' of https://github.com/pandas-dev/pandas into su…
NicolasHug Sep 1, 2020
fdd7610
added test for coverage
NicolasHug Sep 1, 2020
fe965b0
Merge branch 'master' of https://github.com/pandas-dev/pandas into su…
NicolasHug Sep 4, 2020
4478597
changed to whatsnew 112
NicolasHug Sep 5, 2020
ac51202
used proper whatsnew file
NicolasHug Sep 5, 2020
722c83b
Merge branch 'master' of https://github.com/pandas-dev/pandas into su…
NicolasHug Sep 5, 2020
c601c2d
Merge branch 'master' into subplot_groups
NicolasHug Sep 6, 2020
c99abba
Merge branch 'master' into subplot_groups
NicolasHug Nov 6, 2020
ea6c73d
unwgnjgrwnjwgnjrkknrjg
NicolasHug Nov 6, 2020
9184e64
Merge branch 'master' of github.com:pandas-dev/pandas into subplot_gr…
NicolasHug Jan 17, 2021
34515a8
Addressed comments
NicolasHug Jan 17, 2021
ae90509
remove code due to merge mess up
NicolasHug Jan 17, 2021
827c5b5
fix mypy
NicolasHug Jan 17, 2021
5aace24
Merge branch 'master' of github.com:pandas-dev/pandas into subplot_gr…
NicolasHug Jan 17, 2021
b28d3b3
Merge branch 'master' of github.com:pandas-dev/pandas into subplot_gr…
NicolasHug Jan 18, 2021
587cbc1
Merge branch 'master' of github.com:pandas-dev/pandas into subplot_gr…
NicolasHug Apr 3, 2021
1517ae3
Merge branch 'master' into subplot_groups
NicolasHug May 10, 2021
8c61b83
Merge branch 'master' of github.com:pandas-dev/pandas into subplot_gr…
NicolasHug May 10, 2021
b75d86c
merge again
NicolasHug May 10, 2021
55928ff
mypy for the billionth time
NicolasHug May 10, 2021
b5f47f2
Merge branch 'master' of github.com:pandas-dev/pandas into subplot_gr…
NicolasHug Jun 8, 2021
43070d3
add return type
NicolasHug Jun 8, 2021
e3c0146
add line
NicolasHug Jun 8, 2021
a4c2676
mypy for the billionth time + 1
NicolasHug Jun 8, 2021
71b7b39
Merge branch 'master' of github.com:pandas-dev/pandas into subplot_gr…
NicolasHug Oct 4, 2021
4157618
Merge branch 'main' of github.com:pandas-dev/pandas into subplot_groups
NicolasHug Jan 17, 2022
9b44546
update whatnew
NicolasHug Jan 17, 2022
2d89f73
Merge branch 'main' into subplot_groups
NicolasHug Mar 7, 2022
8cd6342
import Iterable from typing.
NicolasHug Mar 29, 2022
ffd4b18
Merge branch 'main' of github.com:pandas-dev/pandas into subplot_groups
NicolasHug Mar 29, 2022
66342bc
Merge remote-tracking branch 'upstream/main' into subplot_groups
mroeschke Jun 2, 2022
48c9f32
Process groups to indices in one pass
mroeschke Jun 3, 2022
aa128dc
Merge remote-tracking branch 'upstream/main' into subplot_groups
mroeschke Jun 3, 2022
69efd18
Fix typing check
mroeschke Jun 3, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
formatted files
  • Loading branch information
NicolasHug committed Jan 17, 2020
commit 99cc0498ed934cd2150398b4fa49c05564b7e68f
12 changes: 6 additions & 6 deletions pandas/tests/plotting/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -3273,15 +3273,15 @@ def test_plot_no_numeric_data(self):

def test_group_subplot(self):
d = {
'a': np.arange(10),
'b': np.arange(10) + 1,
'c': np.arange(10) + 1,
'd': np.arange(10),
'e': np.arange(10),
"a": np.arange(10),
"b": np.arange(10) + 1,
"c": np.arange(10) + 1,
"d": np.arange(10),
"e": np.arange(10),
}
df = pd.DataFrame(d)

ax = df.plot(subplots=[('b', 'e'), ('c', 'd')])
ax = df.plot(subplots=[("b", "e"), ("c", "d")])
assert len(ax) == 3 # 2 groups + single column a

def test_missing_markers_legend(self):
Expand Down