Skip to content

Commit 5d90f7d

Browse files
committed
BUG: fix failure in grouped boxplot causing docs bug. push rc number to 2
1 parent 5f5df2a commit 5d90f7d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

pandas/tests/test_graphics.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ def test_boxplot(self):
194194
_check_plot_works(df.boxplot, notch=1)
195195
_check_plot_works(df.boxplot, by='indic', notch=1)
196196

197+
df = DataFrame(np.random.rand(10,2), columns=['Col1', 'Col2'] )
198+
df['X'] = Series(['A','A','A','A','A','B','B','B','B','B'])
199+
_check_plot_works(df.boxplot, by='X')
197200

198201
@slow
199202
def test_kde(self):

pandas/tools/plotting.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,8 @@ def boxplot(data, column=None, by=None, ax=None, fontsize=None,
10071007
def plot_group(grouped, ax):
10081008
keys, values = zip(*grouped)
10091009
keys = [_stringify(x) for x in keys]
1010-
ax.boxplot(remove_na(values), **kwds)
1010+
values = [remove_na(v) for v in values]
1011+
ax.boxplot(values, **kwds)
10111012
if kwds.get('vert', 1):
10121013
ax.set_xticklabels(keys, rotation=rot, fontsize=fontsize)
10131014
else:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
MICRO = 0
177177
ISRELEASED = True
178178
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
179-
QUALIFIER = 'rc1'
179+
QUALIFIER = 'rc2'
180180

181181
FULLVERSION = VERSION
182182
if not ISRELEASED:

0 commit comments

Comments
 (0)