+
    xȇiq                     v    R t ^ RIt^ RIt^ RIHtHtHt ^ RIH	t	H
t
 ]P                  ! R4        ! R R4      tR# )zTest cases for GroupBy.plotN)	DataFrameIndexSeries)_check_axes_shape_check_legend_labels
matplotlibc                      a  ] tR t^t o R tR tR tR tR tR t	R t
R tR	 tR
 tR t]P                   P#                  RRR.4      R 4       t]P                   P#                  RRR.4      R 4       tR tR tRtV tR# )TestDataFrameGroupByPlotsc                    ^
p\        \        P                  P                  ^4      P	                  ^^VR7      4      p\        P                  P                  ^4      P                  RR.VR7      pVP                  V4      P                  4        R# 
   sizemalefemaleNr   nprandomdefault_rngnormalchoicegroupbyplot)selfnweightgenders   &   r/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/plotting/test_groupby.py,test_series_groupby_plotting_nominally_worksFTestDataFrameGroupByPlots.test_series_groupby_plotting_nominally_works   sp    		--a077Ra7HI&&q)00&(1C!0Lv##%    c                    ^
p\        \        P                  P                  ^4      P	                  ^<^
VR7      4      p\        P                  P                  ^4      P                  RR.VR7      pVP                  V4      P                  4        R# r   )r   r   r   r   r   r   r   histr   r   heightr   s   &   r   1test_series_groupby_plotting_nominally_works_histKTestDataFrameGroupByPlots.test_series_groupby_plotting_nominally_works_hist   sp    		--a077BQ7GH&&q)00&(1C!0Lv##%r    c                $   ^
p\        \        P                  P                  ^4      P	                  ^<^
VR7      4      p\        P                  P                  ^4      P                  RR.VR7      pVP                  V4      P                  RR7       R# )r   r   r   r   g      ?)alphaNr   r#   s   &   r   2test_series_groupby_plotting_nominally_works_alphaLTestDataFrameGroupByPlots.test_series_groupby_plotting_nominally_works_alpha!   su    		--a077BQ7GH&&q)00&(1C!0Lv####.r    c                    \        R . ROR\        P                  P                  ^4      P	                  ^	4      /. ROR7      pVP                  R 4      R,          P                  4        R# )defvalindexN	   r1   r1      r2   r2      r3   r3   	      ?       @      @r5   r6   r7   r5   r6   r7   )r   r   r   r   standard_normalr   r   r   dfs   & r   $test_plotting_with_float_index_works>TestDataFrameGroupByPlots.test_plotting_with_float_index_works(   sX    2ryy,,Q/??B @
 	

5% %%'r    c                    \        R . ROR\        P                  P                  ^4      P	                  ^	4      /. ROR7      pVP                  R 4      R,          P                  R 4       R# )r,   r-   r.   c                 "    V P                  4       # )N)r   )xs   &r   <lambda>VTestDataFrameGroupByPlots.test_plotting_with_float_index_works_apply.<locals>.<lambda>=   s
    r    Nr0   r4   )r   r   r   r   r8   r   applyr9   s   & r   *test_plotting_with_float_index_works_applyDTestDataFrameGroupByPlots.test_plotting_with_float_index_works_apply4   s[    2ryy,,Q/??B @
 	

5% &&'9:r    c           	         \         P                  ! ^P^f^4      p\        RRR.R^^.R^U^Y./4      pVR,          P                  VR,          VR7       R# )P   NameAAABBBByColMarkbybinsNr   aranger   r"   r   rN   r:   s   &  r   test_hist_single_row.TestDataFrameGroupByPlots.test_hist_single_row?   sO    yyWa(!Q"bRS
6
2g;T2r    c                    \         P                  ! ^P^f^4      p\        RR.R^.R^U./4      pVR,          P                  VR,          VR7       R# )rF   rG   rH   rJ   rK   rL   NrO   rQ   s   &  r   !test_hist_single_row_single_bycol;TestDataFrameGroupByPlots.test_hist_single_row_single_bycolE   sI    yyWa(1#vtDE
6
2g;T2r    c           
         \        R . ROR. ROR\        R4      /4      pVP                  R4      P                  P	                  R R4       R# r?   yzababaNr1   r2   r3         r1   r2   r3   r2   r1   )r   listr   r   scatterr9   s   & r   test_plot_submethod_works3TestDataFrameGroupByPlots.test_plot_submethod_worksK   s;    _c?CgWX


3$$S#.r    c           
         \        R . ROR. ROR\        R4      /4      pVP                  R4      R ,          P                  P	                  4        R# rX   )r   r`   r   r   liner9   s   & r   test_plot_submethod_works_line8TestDataFrameGroupByPlots.test_plot_submethod_works_lineO   s<    _c?CgWX


3!!&&(r    c           
         \        R . ROR. R	OR\        R4      /4      pVP                  R4      P                  RR RR7      p\	        VR,          P
                  4      ^8X  g   Q hR# )
r?   rY   rZ   r[   ra   )kindr?   rY   aNr\   r_   )r   r`   r   r   lencollectionsr   r:   ress   &  r   test_plot_kwargs*TestDataFrameGroupByPlots.test_plot_kwargsS   s[    _c?CgWXjjo""	SC"@ 3s8''(A---r    c           
         \        R . ROR. ROR\        R4      /4      pVP                  R4      P                  P	                  R RR7      p\        VR,          P                  4      ^8X  g   Q hR# )	r?   rY   rZ   r[   )r?   rY   rj   Nr\   r_   )r   r`   r   r   ra   rk   rl   rm   s   &  r   test_plot_kwargs_scatter2TestDataFrameGroupByPlots.test_plot_kwargs_scatter[   s]    _c?CgWXjjo""**SC*83s8''(A---r    zcolumn, expected_axes_numNbc                   ^V3pT;'       g    R.R..p\        ^R.,          ^R.,          ,           RR7      p\        \        P                  P	                  ^4      P                  R4      VRR.R7      pVP                  R4      pVP                  RVR	7       F9  p\        WVR
7       \        V^ ,          VRR7       F  w  r\        W4       K  	  K;  	  R# )r1   rj   rt   12cnamer/   columnsT)legendcolumnaxes_numlayout)strictN   r2   )r   r   r   r   r   r8   r   r"   r   zipr   )r   r~   expected_axes_numexpected_layoutexpected_labelsr/   r:   gaxesaxexpected_labels   &&&        r   #test_groupby_hist_frame_with_legend=TestDataFrameGroupByPlots.test_groupby_hist_frame_with_legend`   s     /0 22cUSENbC5j2:-C8II!!!$44W=#J

 JJsOFF$vF6DdW&)$q'?4&P"$R8 'Q 7r    r~   c                   \        ^R.,          ^R.,          ,           RR7      p\        \        P                  P	                  ^4      P                  R4      VRR.R7      pVP                  R4      p\        P                  ! \        RR	7      ;_uu_ 4        VP                  R
VRR7       RRR4       R#   + '       g   i     R# ; i)   rv   rw   rx   ry   rj   rt   r{    Cannot use both legend and labelmatchTd)r}   r~   labelNr   r   r   r   r   r   r8   r   pytestraises
ValueErrorr"   )r   r~   r/   r:   r   s   &&   r   *test_groupby_hist_frame_with_legend_raisesDTestDataFrameGroupByPlots.test_groupby_hist_frame_with_legend_raisess   s     bC5j2:-C8II!!!$44W=#J

 JJsO]]:-OPPFF$vSF9 QPPPs   B55C	c                `   \        ^R.,          ^R.,          ,           RR7      p\        \        P                  P	                  ^4      P                  R4      VRR.R7      pVP                  R4      pVR,          P                  RR	7       F  p\        V^RR
7       \        VRR.4       K!  	  R# )r   rv   rw   rx   ry   rj   rt   r{   T)r}   r   Nr   )r1   r1   )
r   r   r   r   r   r8   r   r"   r   r   )r   r/   r:   r   r   s   &    r   $test_groupby_hist_series_with_legend>TestDataFrameGroupByPlots.test_groupby_hist_series_with_legend   s    bC5j2:-C8II!!!$44W=#J

 JJsOC&++T+*Bb1V< c3Z0 +r    c                   \        ^R.,          ^R.,          ,           RR7      p\        \        P                  P	                  ^4      P                  R4      VRR.R7      pVP                  R4      p\        P                  ! \        RR	7      ;_uu_ 4        VP                  R
RR7       RRR4       R#   + '       g   i     R# ; i)r   rv   rw   rx   ry   rj   rt   r{   r   r   Tr   )r}   r   Nr   r   )r   r/   r:   r   s   &   r   +test_groupby_hist_series_with_legend_raisesETestDataFrameGroupByPlots.test_groupby_hist_series_with_legend_raises   s    bC5j2:-C8II!!!$44W=#J

 JJsO]]:-OPPFF$cF* QPPPs   B44C	 )Nr2   )rt   r1   )__name__
__module____qualname____firstlineno__r   r%   r)   r;   rC   rR   rU   rb   rf   ro   rr   r   markparametrizer   r   r   r   __static_attributes____classdictcell__)__classdict__s   @r   r	   r	      s     &&/
(	;33/)..
 [[89h:OP9 Q9$ [[Xc{3: 4:1+ +r    r	   )__doc__numpyr   r   pandasr   r   r   pandas.tests.plotting.commonr   r   importorskipr	   r   r    r   <module>r      s9    !   

   L !G+ G+r    