@@ -961,7 +961,7 @@ def plot_series(series, label=None, kind='line', use_index=True, rot=None,
961
961
return plot_obj .ax
962
962
963
963
def boxplot (data , column = None , by = None , ax = None , fontsize = None ,
964
- rot = 0 , grid = True , figsize = None , ** kwargs ):
964
+ rot = 0 , grid = True , figsize = None , ** kwds ):
965
965
"""
966
966
Make a box plot from DataFrame column optionally grouped b ysome columns or
967
967
other inputs
@@ -991,7 +991,7 @@ def plot_group(grouped, ax):
991
991
keys , values = zip (* grouped )
992
992
keys = [_stringify (x ) for x in keys ]
993
993
ax .boxplot (values , ** kwds )
994
- if kwds .get ('vert' , 1 ) == 1 :
994
+ if kwds .get ('vert' , 1 ):
995
995
ax .set_xticklabels (keys , rotation = rot , fontsize = fontsize )
996
996
else :
997
997
ax .set_yticklabels (keys , rotation = rot , fontsize = fontsize )
@@ -1027,7 +1027,7 @@ def plot_group(grouped, ax):
1027
1027
# Return boxplot dict in single plot case
1028
1028
1029
1029
bp = ax .boxplot (list (data [cols ].values .T ), ** kwds )
1030
- if kwds .get ('vert' , 1 ) == 1 :
1030
+ if kwds .get ('vert' , 1 ):
1031
1031
ax .set_xticklabels (keys , rotation = rot , fontsize = fontsize )
1032
1032
else :
1033
1033
ax .set_yticklabels (keys , rotation = rot , fontsize = fontsize )
0 commit comments