+
    xȇit                      a  0 t $ R t^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RI	H
t
HtHtHtHtHt ^ RIHt ^ RIHtHtHtHtHt ^ RIHt ^ RIHt ]P:                  ! R4      t]P:                  ! R4      tR	 t ]! ]PB                  4      ]! R
4      8  d   RR/RR/.t"R]#R&   MRR/RR/.t"]PH                  ! ]"R7      R 4       t% ! R R4      t& ! R R4      t'R# )zTest cases for .boxplot method)annotationsN)	DataFrame
MultiIndexSeries
date_rangeplottingtimedelta_range)_check_axes_shape_check_box_return_type_check_plot_works_check_ticks_props_check_visible)Version)pprint_thing
matplotlibzmatplotlib.pyplotc                    VP                  4       w  r#W P                  4       8:  g   Q hW0P                  4       8  g   Q hR # N)get_ylimminmax)colaxy_miny_maxs   &&  y/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/plotting/test_boxplot_method.py_check_ax_limitsr   #   s3    ;;=LEGGIGGI    3.10vertFTzlist[dict[str, bool | str]]vertsorientation
horizontalvertical)paramsc                    V P                   # r   )param)requests   &r   r   r   /   s    ==r   c                  ~   ] tR t^4tR t]P                  P                  ]P                  P                  RRR/R.RRR./R.RRR.R	R
/]	.RR.R	R
R./R.R	R
/]	.R	R
R./]	.R^/R.R	R
R^/]	..4      R 4       4       t
R tR tR tR tR tR tR tR t]P                  P                  R. R<O4      R 4       tR tR tR tR tR tR t]P                  P                  RRRR R!R"R#R$R%/RRR R!R"R#R$R%/3RR/RR/3RRRR RR"RR$R/3.4      R& 4       t]P                  P                  R'R(RR)R R)R"R*R$R)/3R+RR,R R,R"R-R$R,/3.4      R. 4       t]P                  P                  R/RRR0R/R13.4      R2 4       t]P                  P                  R3. R=O4      R4 4       t]P                  P=                  R54      R6 4       t]P                  P=                  R54      R7 4       t ]P                  P=                  R54      R8 4       t!]P                  P=                  R54      R9 4       t"]P                  P=                  R54      R: 4       t#R;t$R# )>TestDataFramePlotsc                	   ^p\        R\        P                  P                  ^4      P	                  . R	OV4      R\        P                  P                  ^4      P	                  . R	OV4      R\        P                  P                  ^4      P	                  . R	OV4      /\        P
                  ! ^ V4      R7      pVP                  RRR7      pVP                  4        Uu. uF  p\        VP                  4       4      NK  	  upVP                  P                  4       8X  g   Q hVP                  \        P
                  ! ^ V^
4      4       \        P                  4        VP                  4        Uu. uF  p\        VP                  4       4      NK  	  up\        \        P
                  ! ^ V^
4      4      8X  g   Q hR# u upi u upi )
   Clinical	Confirmed	DiscardedindexbarT)kindstackedN)             )r   nprandomdefault_rngchoicearangeplotget_xticklabelsintget_textr/   to_list
set_xtickspltdrawlist)selfndfr   xs   &    r   test_stacked_boxplot_set_axis0TestDataFramePlots.test_stacked_boxplot_set_axis5   sY   BII11!4;;L!LRYY2215<<\1MRYY2215<<\1M
 ))Aq/
 WW%W.+-+=+=+?@+?aAJJL!+?@BHHDTDTDVVVV
bii1b)*
+-+=+=+?@+?aAJJL!+?@DIIaBE
 
 	
 
 A As   "F;."G zkwargs, warnreturn_typedictNcolumnonetwobyindicindic2notchc                	   \        \        P                  P                  ^4      P	                  R
4      \        \        P                  R,          4      . ROR7      pRR.^,          VR&   . RO^,          VR&   \        P                  ! VRR7      ;_uu_ 4        \        VP                  3/ VB  R	R	R	4       R	#   + '       g   i     R	# ; i)r5   N   Nr/   columnsfoor0   rQ   rR   Fcheck_stacklevelNrV      rN   rO   threefour)rY   r0   rY   )r   r7   r8   r9   standard_normalrD   stringascii_letterstmassert_produces_warningr   boxplot)rE   kwargswarnrG   s   &&& r   test_boxplot_legacy1'TestDataFramePlots.test_boxplot_legacy1H   s     II!!!$44V<v++B/03

 enq(7,q08 ''uEEbjj3F3 FEEEs   B88C		c                	    \        \        P                  P                  ^4      P	                  ^4      4      p\        \        P                  P                  VRR7       R# )r5   rL   )datarK   N)	r   r7   r8   r9   ra   r   r   _corerf   )rE   sers   & r   test_boxplot_legacy1_series.TestDataFramePlots.test_boxplot_legacy1_seriesc   s<    RYY**1-==a@A(..00sOr   c                	x   \        \        P                  P                  ^4      P                  R4      RR.R7      p\	        . RO4      VR&   \	        R.^
,          4      VR&   \
        P                  ! \        RR7      ;_uu_ 4        \        VP                  RR	7       R
R
R
4       R
#   + '       g   i     R
# ; i)r5   Col1Col2rX   AXYFrZ   rP   N
   r5   
ru   ru   ru   ru   ru   Br|   r|   r|   r|   )
r   r7   r8   r9   r   rd   re   UserWarningr   rf   rE   rG   s   & r   test_boxplot_legacy2'TestDataFramePlots.test_boxplot_legacy2g   s    II!!!$++G4vv>N
 KL3#$3''eLLbjjS1 MLLLs   B((B9	c                	V   \        \        P                  P                  ^4      P                  R	4      RR.R7      p\	        . R
O4      VR&   \	        R.^
,          4      VR&   \
        P                  P                  4       w  r#VP                  RRVR7      pVP                  pWTJ g   Q hR# )r5   rr   rs   rt   ru   rv   rw   )rP   r   Nry   r{   )
r   r7   r8   r9   r   mplpyplotsubplotsrf   axes)rE   rG   _r   r   ax_axess   &     r   test_boxplot_legacy2_with_ax/TestDataFramePlots.test_boxplot_legacy2_with_axp   s    II!!!$++G4vv>N
 KL3#$3 

##%zz&SRz0''r   c                	   \        \        P                  P                  ^4      P                  R
4      RR.R7      p\	        . RO4      VR&   \	        R.^
,          4      VR&   \
        P                  P                  4       w  r#VP                  R4      P                  VRR7      pVP                  pWTR,          J g   Q hR	# )r5   rr   rs   rt   ru   rv   rw   r   r   rK   Nry   r{   )r   r7   r8   r9   r   r   r   r   groupbyrf   r   )rE   rG   figr   r   r   s   &     r   (test_boxplot_legacy2_with_ax_return_type;TestDataFramePlots.test_boxplot_legacy2_with_ax_return_type}   s    II!!!$++G4vv>N
 KL3#$3**%%'zz#&&"&&A''s)###r   c           	     	   \        \        P                  P                  ^4      P                  R4      RR.R7      p\	        . RO4      VR&   \	        R.^
,          4      VR&   \
        P                  P                  4       w  r#Rp\        P                  ! \        VR7      ;_uu_ 4        VP                  RR.RVR	R
7      pRRR4       XR,          P                  4       VJ g   Q hR#   + '       g   i     L/; i)r5   rr   rs   rt   ru   rv   rw   z6the figure containing the passed axes is being clearedmatchr   )rM   rP   r   rK   Nry   r{   )r   r7   r8   r9   r   r   r   r   rd   re   r}   rf   
get_figure)rE   rG   r   r   msgr   s   &     r   #test_boxplot_legacy2_with_multi_col6TestDataFramePlots.test_boxplot_legacy2_with_multi_col   s    II!!!$++G4vv>N
 KL3#$3**%%'F''3??::'CBF  D @ F|&&(C///	 @?s   (C''C7	c                	   \        \        P                  P                  ^4      P                  R
4      RR.R7      p\	        . RO4      VR&   \	        R.^
,          4      VR&   \
        P                  P                  4       w  r#VP                  VRR7      p\        \        P                  P                  VP                  4       4      4      p\        VP                  4       4      \        V4      8X  g   Q hR	# )r5   rr   rs   rt   ru   rv   rw   rL   r   Nry   r{   )r   r7   r8   r9   r   r   r   r   rf   rD   	itertoolschainfrom_iterablevalueslen	get_lines)rE   rG   r   r   dliness   &     r   test_boxplot_legacy2_by_none/TestDataFramePlots.test_boxplot_legacy2_by_none   s    II!!!$++G4vv>N
 KL3#$3 

##%JJ"&J1Y__22188:>?2<<>"c%j000r   c                	~    VP                  4       p\        V\        P                  P                  4      '       g   Q hR # r   )rf   
isinstancer   r   Axes)rE   hist_dfresults   && r   test_boxplot_return_type_none0TestDataFramePlots.test_boxplot_return_type_none   s)    "&#**//2222r   c                	   \        \        P                  P                  ^4      P	                  R	4      \        \        P                  R,          4      . R
OR7      pRp\        P                  ! \        VR7      ;_uu_ 4        VP                  RR7       RRR4       VP                  4       p\        VR4       R#   + '       g   i     L.; i)r5   rU   rW   z,return_type must be {'axes', 'dict', 'both'}r   
NOT_A_TYPErK   Nr   r\   r^   )r   r7   r8   r9   ra   rD   rb   rc   pytestraises
ValueErrorrf   r
   )rE   rG   r   r   s   &   r   test_boxplot_return_type_legacy2TestDataFramePlots.test_boxplot_return_type_legacy   s     II!!!$44V<v++B/03

 =]]:S11JJ<J0 2 vv.	 21s   B::C
	c                	j   \        \        P                  P                  ^4      P	                  R4      \        \        P                  R,          4      . ROR7      p\        P                  ! R4      ;_uu_ 4        VP                  VR7      pRRR4       \        XV4       R#   + '       g   i     L; i)r5   rU   rW   Fr   Nr\   r^   )r   r7   r8   r9   ra   rD   rb   rc   rd   re   rf   r
   )rE   rK   rG   r   s   &&  r   +test_boxplot_return_type_legacy_return_type>TestDataFramePlots.test_boxplot_return_type_legacy_return_type   s|     II!!!$44V<v++B/03

 ''..ZZKZ8F /v{3 /.s   9B""B2	c                	N   VP                  4       p\        P                  P                  ^4      P	                  ^^VP
                  ^ ,          4      VR&   VP                  RR.RR7      w  r4\        VR,          V4       \        VR,          V4       VP                  V8X  g   Q hR# )r5   ageheightweightcategoryrx   N	copyr7   r8   r9   integersshaperf   r   _sharey)rE   r   rG   	height_ax	weight_axs   &&   r   test_boxplot_axis_limits+TestDataFramePlots.test_boxplot_axis_limits   s    \\^II))!,55aRXXa[I5	!zz8X*>:zN	Hy1Hy1  I---r   c                	   VP                  4       p\        P                  P                  ^4      P	                  ^^VP
                  ^ ,          4      VR&   VP                  . RORR7      pVR,          VR	,          VR
,          repVR,          p\        VR,          V4       \        VR,          V4       \        VR,          V4       VP                  V8X  g   Q hVP                  V8X  g   Q hVP                  e   Q hR# )r5   r   r   r   r   rx   N)r   r   r   )r3   r3   )r3   r4   )r4   r3   r4   r4   r   )rE   r   rG   pr   r   age_axdummy_axs   &&      r   !test_boxplot_axis_limits_two_rows4TestDataFramePlots.test_boxplot_axis_limits_two_rows   s    \\^II))!,55aRXXa[I5	JJ2zJB'(w$4f	T7Hy1Hy1EF+  I---~~***'''r   c                	    \        \        P                  P                  ^4      P	                  R4      4      p\        P
                  VP                  R&   \        VP                  RR7       R# )r5   r   r   N)   r]   ):NNNr3   )	r   r7   r8   r9   ra   nanlocr   rf   r~   s   & r   test_boxplot_empty_column,TestDataFramePlots.test_boxplot_empty_column   sE    ryy,,Q/??HIvvt"**&9r   c                	>   \        \        P                  P                  ^4      P                  R4      . ROR7      pVP	                  RRR7      pVP
                  P                  P                  ^8X  g   Q hVP
                  P                  P                  ^8X  g   Q hR# )r5   rt   r   )rK   figsizeN)rz      )ru   r|   CDE)      )	r   r7   r8   r9   rf   figurebbox_incheswidthr   )rE   rG   r   s   &  r   test_figsizeTestDataFramePlots.test_figsize   s|    II!!!$++G4>W
 @}}((.."444}}((//1444r   c                	b    \        R . RO/4      p\        VP                  R ^R7      ^^R7       R# )a)fontsize
xlabelsize
ylabelsizeNr4   r5   r6   r]   r   rV   r   r   rf   r~   s   & r   test_fontsize TestDataFramePlots.test_fontsize   s,    /012::cB:7BSUVr   c                	   \        R \        R^
R7      R\        P                  P	                  ^4      P                  ^
4      R\        P                  P	                  ^4      P                  ^
4      ^,           R\        R^
R7      P                  \        4      R\        R^
RR7      R	\        R
^
R7      /4      pVP                  RR7      pVP                  4        Uu. uF  q3P                  4       NK  	  upRR.8X  g   Q hR# u upi )r   z
2012-01-01)periodsbcr   eUTC)r   tzfz1 daysbox)r1   N)r   r   r7   r8   r9   ra   astypestrr   r<   r=   r?   )rE   rG   r   rH   s   &   r   test_boxplot_numeric_data,TestDataFramePlots.test_boxplot_numeric_data   s    Zb9RYY**1-==bARYY**1-==bAAEZb9@@EZbUC_Xr:	
 WW%W &(&8&8&:;&:

&:;SzIII;s   Dzcolors_kwd, expectedboxesrwhiskersr   mediansgcapsr   c                	   \        \        P                  P                  ^4      P                  R4      4      pVP	                  VRR7      pVP                  4        F)  w  rVWE,          ^ ,          P                  4       V8X  d   K)  Q h	  R# )r5   rL   colorrK   Nry   )r   r7   r8   r9   rf   items	get_color)rE   
colors_kwdexpectedrG   r   kvs   &&&    r   test_color_kwd!TestDataFramePlots.test_color_kwd   sj     ryy,,Q/66w?@*&ANN$DA9Q<))+q000 %r   zscheme,expecteddark_backgroundz#8dd3c7z#bfbbd9defaultz#1f77b4z#2ca02cc                	d   \        \        P                  P                  ^4      P                  R4      4      p\        P
                  P                  V4       VP                  P                  RR7      pVP                  4        F)  w  rVWE,          ^ ,          P                  4       V8X  d   K)  Q h	  R# )r5   rL   r   Nry   )r   r7   r8   r9   rB   styleuser<   r   r   r   )rE   schemer   rG   r   r   r  s   &&&    r   test_colors_in_theme'TestDataFramePlots.test_colors_in_theme  s|    2 ryy,,Q/66w?@		f0NN$DA9Q<))+q000 %r   zdict_colors, msginvalid_keyzinvalid key 'invalid_key'c                	   \        \        P                  P                  ^4      P                  R4      4      p\        P
                  ! \        VR7      ;_uu_ 4        VP                  VRR7       RRR4       R#   + '       g   i     R# ; i)r5   r   rL   r   Nry   )r   r7   r8   r9   r   r   r   rf   )rE   dict_colorsr   rG   s   &&& r   test_color_kwd_errors(TestDataFramePlots.test_color_kwd_errors.  sX     ryy,,Q/66w?@]]:S11JJ[fJ= 2111s   A::B	zprops, expectedc           	     	   \        R  Uu/ uF1  q3\        P                  P                  ^4      P                  ^
4      bK3  	  up4      pVRR//pVP                  ! RRR/VB pWb,          ^ ,          P                  4       R8X  g   Q hR# u upi )ABCr   C1rK   rL   N )r   r7   r8   r9   rf   r   )rE   propsr   r   rG   kwdr   s   &&&    r   test_specified_props_kwd+TestDataFramePlots.test_specified_props_kwd8  s     N1299003::2>>NOwo&66#6",,.$666	 Os   7Bz!ignore:set_ticklabels:UserWarningc                	   \        R \        P                  P                  ^4      P	                  ^
4      R\        P                  P                  ^4      P	                  ^
4      R\        P                  P                  ^4      P                  RR.^
4      /4      pRRrCVP                  ! RRRR	VR
V/VB pVP                  4       V8X  g   Q hVP                  4       V8X  g   Q hR# )r   r   groupgroup1group2rH   yr1   r   xlabelylabelNr  )	r   r7   r8   r9   ra   r:   r<   
get_xlabel
get_ylabelrE   r   rG   r  r  r   s   &&    r   test_plot_xlabel_ylabel*TestDataFramePlots.test_plot_xlabel_ylabelI  s    RYY**1-==bARYY**1-==bA..q188(H9MrR
 cWWF%FFvFF}}&(((}}&(((r   c           	     	0   \         P                  P                  ^4      p\        VP	                  ^ ^dRR7      \        R4      R7      p\        VP	                  ^ ^dRR7      \        R4      R7      pRRre\        P                  ^RRR7      w  rxVP                  P                  ! RRV^ ,          R	VR
V/VB  VP                  P                  ! RRV^,          R	VR
V/VB  V F1  p	V	P                  4       V8X  g   Q hV	P                  4       V8X  d   K1  Q h	  R# )r5   sizeABCDrt   rH   r  T)ncolsr   shareyr   r  r  N)rz   r]   )rz      r  )r7   r8   r9   r   r   rD   rB   r   r<   r   r   r!  )
rE   r   rngdf1df2r  r  r   axsr   s
   &&        r   test_plot_box TestDataFramePlots.test_plot_boxW  s     ii##A&Q':DLQQ':DLQcAwtDEAEvEfEEEAEvEfEEB==?f,,,==?f,,, r   c                	   \        R \        P                  P                  ^4      P	                  ^
4      R\        P                  P                  ^4      P	                  ^
4      R\        P                  P                  ^4      P                  RR.^
4      /4      pRRrCVP                  ! R
RVRV/VB pVP                  4       V8X  g   Q hVP                  4       V8X  g   Q hR	# )r   r   r  r  r  rH   r  r  r  Nr  	r   r7   r8   r9   ra   r:   rf   r   r!  r"  s   &&    r   test_boxplot_xlabel_ylabel-TestDataFramePlots.test_boxplot_xlabel_ylabelf  s    RYY**1-==bARYY**1-==bA..q188(H9MrR
 cZZ=v=f==}}&(((}}&(((r   c                	   \        R \        P                  P                  ^4      P	                  ^
4      R\        P                  P                  ^4      P	                  ^
4      R\        P                  P                  ^4      P                  RR.^
4      /4      pRRrCVP                  ! RRRRVR	V/VB pV F1  pVP                  4       V8X  g   Q hVP                  4       V8X  d   K1  Q h	  R
# )r   r   r  r  r  rH   r  rP   r  r  Nr  r3  )rE   r   rG   r  r  r   subplots   &&     r    test_boxplot_group_xlabel_ylabel3TestDataFramePlots.test_boxplot_group_xlabel_ylabelt  s    RYY**1-==bARYY**1-==bA..q188(H9MrR
 cZZI7I6I&IDIG%%'6111%%'6111 r   c                	   \        \        P                  4      \        R 4      8  d<   VRR/8X  d3   VP                  \        P
                  P                  V R2R7      4       \        R\        P                  P                  ^4      P                  ^
4      R\        P                  P                  ^4      P                  ^
4      R\        P                  P                  ^4      P                  RR	.^
4      /4      pVP                  ! RR
R/VB pV FC  pVRR/RR/39   d   VP                  4       MVP                  4       pV\!        R.4      8X  d   KC  Q h	  R# )r   r    r!   z$ fails starting with matplotlib 3.10)reasonr   r   r  r  r  rP   r   Tr"   Nr  )r   r   __version__applymarkerr   markxfailr   r7   r8   r9   ra   r:   rf   r   r!  r   )rE   r   r&   rG   r   r7  target_labels   &&&    r   #test_boxplot_group_no_xlabel_ylabel6TestDataFramePlots.test_boxplot_group_no_xlabel_ylabel  s;   3??#wv64<D
 <
 !!D61U)V!W RYY**1-==bARYY**1-==bA..q188(H9MrR
 ZZ+7+d+G VTN]J,GHH ""$'') 
  <	#:::: r   r  rL   r   both))boxpropsr   )whiskerpropsr   )cappropsr   )medianpropsr   )%__name__
__module____qualname____firstlineno__rI   r   r>  slowparametrizer}   ri   ro   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r
  r  r  filterwarningsr#  r0  r4  r8  rA  __static_attributes__r  r   r   r(   r(   4   sO   
& [[[[V$d+'.g6D':;TBG_k*Wh'(+6q\4 GWa(+6		
4 4P2	$013
/ [[],DE
4 F
4.(:
5WJ [[ #z3	3L#z3	3L s^gs^,7CS)S&#NO	

1
1 [[ "Y	yI	 Y	yI		
.1/.1 [[C
,.I	JK>	> [[	
77 [[ CD) E) [[ CD- E- [[ CD) E) [[ CD2 E2 [[ CD; E;r   r(   c            
         ] tR tRtR tR t]P                  P                  R 4       t	]P                  P                  R 4       t
R tR t]P                  P                  R 4       t]P                  P                  R	 4       t]P                  P                  ]P                  P                  R
. R0O4      R 4       4       t]P                  P                  ]P                  P                  R
. R0O4      R 4       4       t]P                  P                  R 4       t]P                  P                  R 4       t]P                  P                  R 4       t]P                  P                  ]P                  P                  R. R1O. R2O. R3O.4      R 4       4       t]P                  P                  ]P                  P                  RRR.RR.RR..4      R 4       4       t]P                  P                  R 4       t]P                  P                  ]P                  P                  R^R4.4      R 4       4       t]P                  P                  ]P                  P                  R^^.R4^..4      R 4       4       t]P                  P                  ]P                  P                  R^^.R4^..4      R 4       4       t]P                  P                  R  4       t]P                  P                  R! 4       t]P                  P                  R" 4       tR# t]P                  P                  R$R%. R5O3R%.. R5O3R&. R6O3R%R&.. R7O3R'. R7O3.4      R( 4       tR) t R* t!]P                  P                  R+R,R,R-..4      R. 4       t"R/t#R'# )8TestDataFrameGroupByPlotsi  c                	   VP                  R R7      p\        P                  ! \        RR7      ;_uu_ 4        \	        VP
                  RR7      pRRR4       \        \        XP                  4      ^RR7       R#   + '       g   i     L3; i)	genderrx   FrZ   r   r   Naxes_numlayout)r4   r5   )	r   rd   re   r}   r   rf   r	   rD   r   rE   r   groupedr   s   &&  r   ri   .TestDataFrameGroupByPlots.test_boxplot_legacy1  sZ    //X/.''eLL$W__&ID M$t{{+aG MLs   A::B
	c                	v    VP                  R R7      p\        VP                  RRR7      p\        V^RR7       R# )rT  rx   Fr   r   rK   rU  Nr   )r   r   rf   r	   rX  s   &&  r    test_boxplot_legacy1_return_type:TestDataFrameGroupByPlots.test_boxplot_legacy1_return_type  s0    //X/. 5fU$6:r   c                	   \        \        P                  R ,          \        ^
4      RR7      p\	        \
        P                  P                  ^4      P                  R4      \        P                  ! V4      R7      pVP                  ^R7      p\        P                  ! \        RR7      ;_uu_ 4        \        VP                  RR7      pR	R	R	4       \!        \#        XP$                  4      ^
RR
7       R	#   + '       g   i     L3; i)Nrz   NTstrictr.   levelFrZ   r   r   NrU  rz   r6   )r]   r6   )ziprb   rc   ranger   r7   r8   r9   r   from_tuplesr   rd   re   r}   r   rf   r	   rD   r   rE   tuplesrG   rY  r   s   &    r   r   .TestDataFrameGroupByPlots.test_boxplot_legacy2  s    V))#.b	$GII!!!$++G4((0
 **1*%''eLL$W__&ID M$t{{+bH MLs   0C33D	c                	h   \        \        P                  R ,          \        ^
4      RR7      p\	        \
        P                  P                  ^4      P                  R
4      \        P                  ! V4      R7      pVP                  ^R7      p\        VP                  RRR7      p\        V^RR7       R	# )r`  Tra  r.   rc  Fr   r\  rU  Nre  r   )rf  rb   rc   rg  r   r7   r8   r9   r   rh  r   r   rf   r	   ri  s   &    r    test_boxplot_legacy2_return_type:TestDataFrameGroupByPlots.test_boxplot_legacy2_return_type  s    V))#.b	$GII!!!$++G4((0
 **1*% 5fU$6:r   c                	   ^
p\        \        P                  P                  ^4      P	                  ^^VR7      4      p\        \        P                  P                  ^4      P	                  ^<^
VR7      4      p\        P                  P                  ^4      P                  RR.VR7      p\        RVRVRV/4      pVP                  R4      pVP                  4       p\        \        P                  P                  4       4      ^8X  g   Q h\        V4      ^8X  g   Q h\        P                  R4       VP                  RR	7      p\        \        P                  P                  4       4      ^8X  g   Q h\        V4      ^8X  g   Q hR
# )rz   r&  malefemaler   r   rT  allr   r   N)r   r7   r8   r9   normalr:   r   r   r<   r   r   r   get_fignumsrB   closerf   )rE   rF   r   r   rT  rG   gbress   &       r   test_grouped_plot_fignums3TestDataFrameGroupByPlots.test_grouped_plot_fignums  s2   		--a077Ra7HI		--a077BQ7GH&&q)00&(1C!0L&(FHfMNZZ!ggi3::))+,1113x1}}		%jjVj,3::))+,1113x1}}r   c                	   ^
p\        \        P                  P                  ^4      P	                  ^^VR7      4      p\        \        P                  P                  ^4      P	                  ^<^
VR7      4      p\        P                  P                  ^4      P                  RR.VR7      p\        RVRVRV/4      pVP                  R4      P                  4        R# )rz   r&  rp  rq  r   r   rT  N)	r   r7   r8   r9   rs  r:   r   r   hist)rE   rF   r   r   rT  rG   s   &     r   &test_grouped_plot_fignums_excluded_col@TestDataFrameGroupByPlots.test_grouped_plot_fignums_excluded_col  s    		--a077Ra7HI		--a077BQ7GH&&q)00&(1C!0L&(FHfMN


8!!#r   c                	    TpVP                  R R7      p\        V\        P                  4      '       g   Q h\	        VR. ROR7       R# )rT  rx   Nexpected_keysr   r   r   )rf   r   r7   ndarrayr
   rE   r   rG   r   s   &&  r   test_grouped_box_return_type6TestDataFrameGroupByPlots.test_grouped_box_return_type  s@     x(&"**----D(H	
r   c                	l    TpVP                  R 4      P                  RR7      p\        VRRR.R7       R# )rT  rL   r   MaleFemaler  Nr   rf   r
   r  s   &&  r   $test_grouped_box_return_type_groupby>TestDataFrameGroupByPlots.test_grouped_box_return_type_groupby  s4    H%--&-Avvfh=OPr   rK   c                	    TpVP                  R 4      P                  VR7      p\        WB. ROR7       VP                  R VR7      p\        WB. ROR7       R# )	classroomr   r  rP   rK   Nru   r|   r   r  r  )rE   r   rK   rG   returneds   &&&  r    test_grouped_box_return_type_arg:TestDataFrameGroupByPlots.test_grouped_box_return_type_arg  sO     ::k*22{2KxOT::+:F1Q	
r   c                	l   R P                  4       p\        \        P                  P	                  ^4      P                  R4      VR7      pRP                  4       pV^,          VR&   VP                  R4      P                  VR7      p\        WQVR7       VP                  RVR7      p\        WQVR7       R# )	z	X B C D Art   zA Br   r   r  r  N)rV   r   )	splitr   r7   r8   r9   ra   r   rf   r
   )rE   rK   columns2r.  categories2r  s   &&    r   .test_grouped_box_return_type_arg_duplcate_catsHTestDataFrameGroupByPlots.test_grouped_box_return_type_arg_duplcate_cats  s     $$&II!!!$44V<h
 kkm%/J;;z*22{2KxKP;;*+;FxHMr   c                	    TpR p\         P                  ! \        VR7      ;_uu_ 4        VP                  RR.VP                  RR7       RRR4       R#   + '       g   i     R# ; i)z1Layout of 1x1 must be larger than required size 2r   r   r   rM   rP   rW  Nr   r   r   r   rf   rT  rE   r   rG   r   s   &&  r   !test_grouped_box_layout_too_small;TestDataFrameGroupByPlots.test_grouped_box_layout_too_small  sG    A]]:S11JJx2ryyJP 2111   !AA%	c                	    TpR p\         P                  ! \        VR7      ;_uu_ 4        VP                  . RORRR7       RRR4       R#   + '       g   i     R# ; i)z7The 'layout' keyword is not supported when 'by' is Noner   rL   rM   rW  rK   Nr  )r5   r4   )r   r   r   rf   r  s   &&  r    test_grouped_box_layout_needs_by:TestDataFrameGroupByPlots.test_grouped_box_layout_needs_by  sF    G]]:S11JJ7"   2111s   A

A	c                	    TpR p\         P                  ! \        VR7      ;_uu_ 4        VP                  RR.VP                  RR7       RRR4       R#   + '       g   i     R# ; i)z1At least one dimension of layout must be positiver   r   r   r  N)r  r  r  s   &&  r   'test_grouped_box_layout_positive_layoutATestDataFrameGroupByPlots.test_grouped_box_layout_positive_layout  sG    A]]:S11JJx2ryyJR 2111r  zgb_key, axes_num, rowsr   c                	B   Tp\         P                  ! \        R R7      ;_uu_ 4        \        VP	                  V4      P
                  RRR7       RRR4       \        \        P                  P                  4       P                  W4^3R7       R#   + '       g   i     LG; i)FrZ   r   rL   rM   rK   NrU  rd   re   r}   r   r   rf   r	   r   r   gcfr   )rE   r   gb_keyrV  rowsrG   s   &&&&& r   ,test_grouped_box_layout_positive_layout_axesFTestDataFrameGroupByPlots.test_grouped_box_layout_positive_layout_axes"  sl     ''eLL

6"**8 M 	#**..*//(RS9U	 MLs   (BB	zcol, visibler   Fr   Tc                	0   TpVP                  . RORRR7      p\        \        P                  P	                  4       P
                  ^RR7       WR,          p\        VP                  4       VR7       \        VP                  P                  4       .VR7       R# )	r   rT  r   )rM   rP   rK   rU  )visibleNr  r5   r5   )
rf   r	   r   r   r  r   r   r=   xaxis	get_label)rE   r   r   r  rG   r   r   s   &&&&   r   test_grouped_box_layout_visible9TestDataFrameGroupByPlots.test_grouped_box_layout_visible2  sv    
 zz3f  
 	#**..*//!FKYr))+W=**,-w?r   c                	    TpVP                  R 4      P                  . RORR7       \        \        P                  P                  4       P                  ^RR7       R# )r  rL   r  rU  Nr  r  r   rf   r	   r   r   r  r   )rE   r   rG   s   && r   test_grouped_box_layout_shape7TestDataFrameGroupByPlots.test_grouped_box_layout_shapeA  sG    


;''3 	( 	
 	#**..*//!FKr   colsc           	     	F   Tp\         P                  ! \        R R7      ;_uu_ 4        \        VP	                  R4      P
                  R^V3RR7       RRR4       \        \        P                  P                  4       P                  ^RR7       R#   + '       g   i     LF; i)	FrZ   r   r   rL   r  NrU  )r6   r5   r  )rE   r   r  rG   s   &&& r   test_grouped_box_layout_works7TestDataFrameGroupByPlots.test_grouped_box_layout_worksI  sr     ''eLL

:&..4y"	 M 	#**..*//!FK MLs   +BB 	z	rows, resc                	    TpVP                  . RORV^3R7       \        \        P                  P	                  4       P
                  ^V^3R7       R# )r   rT  r  rU  Nr  )rf   r	   r   r   r  r   )rE   r   r  rw  rG   s   &&&& r   'test_grouped_box_layout_axes_shape_rowsATestDataFrameGroupByPlots.test_grouped_box_layout_axes_shape_rowsV  sI     


3$PQ 	 	
 	#**..*//!S!HMr   z	cols, resc                	    TpVP                  R 4      P                  . RO^V3RR7       \        \        P                  P                  4       P                  ^^V3R7       R# )r  rL   r  rU  Nr  r  )rE   r   r  rw  rG   s   &&&& r   /test_grouped_box_layout_axes_shape_cols_groupbyITestDataFrameGroupByPlots.test_grouped_box_layout_axes_shape_cols_groupby_  sU     


;''3t9 	( 	

 	#**..*//!QHMr   c                	~   Tp\         P                  ! \        R R7      ;_uu_ 4        \        P                  P                  ^^4      w  r4VP                  R4      P                  RRVR7       \        \        P                  P                  4       P                  ^RR7       RRR4       R#   + '       g   i     R# ; i)	sharex and shareyr   r   r   r   rM   rK   r   rU  Nr  )rd   re   r}   r   r   r   r   rf   r	   r  r   )rE   r   rG   r   r   s   &&   r   test_grouped_box_multiple_axes8TestDataFrameGroupByPlots.test_grouped_box_multiple_axesj  s      '';NOOjj))!Q/GAJJz"**(SW*Xcjjnn.33aO POOOs   A:B++B<	c           	     	   Tp\         P                  P                  ^^4      w  r4\        P                  ! \
        RR7      ;_uu_ 4        VP                  . R
ORRV^ ,          R7      pRRR4       \        P                  ! \        XP                  4      4      p\        V^RR7       \        P                  ! WT^ ,          4       V^ ,          P                  VJ g   Q h\        P                  ! \
        RR7      ;_uu_ 4        VP                  R4      P                  . R
ORV^,          R	7      pRRR4       \        P                  ! \        VP                  4      4      p\        V^RR7       \        P                  ! WT^,          4       V^ ,          P                  VJ g   Q hR#   + '       g   i     ELF; i  + '       g   i     L; i)r5   r  r   rT  r   )rM   rP   rK   r   NrU  r  r  r  )r4   r6   )r   r   r   rd   re   r}   rf   r7   arrayrD   r   r	   assert_numpy_array_equalr   r   )rE   r   rG   r   r   r  s   &&    r   %test_grouped_box_multiple_axes_on_fig?TestDataFrameGroupByPlots.test_grouped_box_multiple_axes_on_figy  s[    JJ''1-	'';NOOzz7"7	 " H P 88D12(Qv>
##H1g6{!!S((( '';NOOzz+.667VPTUVPW 7 H P 88D12(Qv>
##H1g6{!!S((() POO POs   	F%-F9%F6	9G		c           	     	   TpR p\         P                  P                  ^^4      w  rE\        P                  ! \
        VR7      ;_uu_ 4        \        P                  ! \        RR7      ;_uu_ 4        VP                  R4      P                  VR7      pRRR4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)z@The number of passed axes must be 3, the same as the output plotr   r  r  )r   N)r   r   r   r   r   r   rd   re   r}   r   rf   )rE   r   rG   r   r   r   s   &&    r   'test_grouped_box_multiple_axes_ax_errorATestDataFrameGroupByPlots.test_grouped_box_multiple_axes_ax_error  s     P**%%a+]]:S11++K?RSSzz+.66$6? T 21SS 211s$   %B70"B$	B7$B4/B77C	c                	l    \        R . ROR. RO/4      p\        VP                  R R^R7      ^^R7       R# )r   r   )rP   r   r   Nr   )r3   r3   r3   r4   r4   r4   r   r~   s   & r   r   'TestDataFrameGroupByPlots.test_fontsize  s5    /6HIJJJssRJ0RB	
r   zcol, expected_xticklabelr  v1Nc           
     	
   \        R \        P                  P                  ^4      P	                  \        R4      ^d4      R\        P                  P                  ^4      P                  ^d4      R\        P                  P                  ^4      P                  ^d4      /4      pVP                  R 4      p\        VP                  RVRR7      pVP                  4        Uu. uF  qfP                  4       NK  	  ppW'8X  g   Q hR# u upi )catabcder  r  Fr   )r   rM   rK   N)r   r7   r8   r9   r:   rD   r   r   rf   r=   r?   )rE   r   expected_xticklabelrG   rY  r   rH   result_xticklabels   &&&     r   #test_groupby_boxplot_subplots_false=TestDataFrameGroupByPlots.test_groupby_boxplot_subplots_false  s    P ryy,,Q/66tG}cJRYY**1-44S9bii++A.55c:
 **U# OOeCV
 483G3G3IJ3IaZZ\3IJ"777 Ks   D c                	    VP                  R 4      pVP                  R4      pRp\        P                  ! \        VR7      ;_uu_ 4        \        VP                  RR7       RRR4       R#   + '       g   i     R# ; i)objectrT  z:boxplot method requires numerical columns, nothing to plotr   F)r   N)r   r   r   r   r   r   rf   )rE   r   rG   rY  r   s   &&   r   test_groupby_boxplot_object5TestDataFrameGroupByPlots.test_groupby_boxplot_object  sQ    ^^H%**X&J]]:S11goo> 2111s   	A++A<	c                	   . RO. RO.p\        \        VRR/ 4      p\        P                  ! VRR.R7      p\	        \
        P                  P                  ^4      P                  R4      . ROVR7      pRR.p\        VP                  VRR7      pR	R
.pVP                  4        Uu. uF  qP                  4       NK  	  p	pWy8X  g   Q hR# u upi )r0   rb  Tfirstsecond)namesrW   r   r  z
(bar, one)z
(bar, two)N)r0   r0   bazr  rY   rY   quxr  )rN   rO   rN   rO   rN   rO   rN   rO   )r6   r   r  )r0   rN   )r0   rO   )rD   rf  r   rh  r   r7   r8   r9   ra   r   rf   r=   r?   )
rE   arraysrj  r/   rG   r   r   r  rH   r  s
   &         r   test_boxplot_multiindex_column8TestDataFrameGroupByPlots.test_boxplot_multiindex_column  s     ED
 c6/$/0&&vgx5HIII!!!$44V<!
 ~. CVL+\:373G3G3IJ3IaZZ\3IJ"777 Ks   %C	r  rv   rw   c           	     	   ^p\        \        P                  P                  ^4      P	                  V^3R7      RR.R7      p\        \        P                  ! RR.\        V^,          4      4      4      VR&   \        \        P                  ! RR	.\        V^,          4      4      4      VR
&   VP                  V4      p\        VP                  VRR7       \        VP                  P                  VRR7       \        VP                  RR7       R# )r   r&  rr   rs   rt   ru   r|   rv   r   r   rw   T)rP   default_axes)r  N)r   r7   r8   r9   rs  r   repeatr>   tiler   r   rf   r<   r   )rE   r  r  rG   rY  s   &&   r   !test_boxplot_multi_groupby_groups;TestDataFrameGroupByPlots.test_boxplot_multi_groupby_groups  s     II!!"%,,4),<vvFV
 C:s4!8}=>3#sS];<3**U#"**TB"''++%dC'//=r   r  rC  )rT  r5   r4   )r   r]   r5   )r  r6   r5   r  )(a, v)(b, v)(c, v)(d, v)(e, v))(a, v1)(b, v1)(c, v1)(d, v1)(e, v1))
r  r  r  r  r  r  r  r  r  r  )$rI  rJ  rK  rL  ri   r]  r   r>  rM  r   rm  rx  r|  r  r  rN  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r  r  r  r  rP  r  r   r   rR  rR    s   H;
 [[	I 	I [[; ;"$ [[
 
 [[Q Q [[[[],DE	
 F 	
 [[[[],DEN F N [[Q Q [[  [[S S [[[[ 	-/BC	V	 
	V [[[[(E*Xt,<z4>PQ	@ 	@ [[L L [[[[VaW-	L . 	L [[[[[Aq6B7*;<N = N [[[[[Aq6B7*;<N = N [[P P [[) )4 [[@ @
 [["DEUFGJKd  '"	
%L8M%L8$?8* [[WsS#J&78> 9>r   rR  )(__conditional_annotations____doc__
__future__r   r   rb   numpyr7   r   pandasr   r   r   r   r   r   pandas._testing_testingrd   pandas.tests.plotting.commonr	   r
   r   r   r   pandas.util.versionr   pandas.io.formats.printingr   importorskipr   rB   r   r<  r   __annotations__fixturer   r(   rR  )r  s   @r   <module>r     s    $ "        ( 3,'-. 3??gfo-+15/FD>)JE&J\*]J,GHE u e; e;Pj> j>r   