+
    NV-jq  ã                   ó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   &   Ús/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/pandas/tests/plotting/test_groupby.pyÚ,test_series_groupby_plotting_nominally_worksÚFTestDataFrameGroupByPlots.test_series_groupby_plotting_nominally_works   sp   € ØˆÜœŸ	™	×-Ñ-¨aÓ0×7Ñ7¸¸RÀaÐ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_histÚKTestDataFrameGroupByPlots.test_series_groupby_plotting_nominally_works_hist   sp   € ØˆÜœŸ	™	×-Ñ-¨aÓ0×7Ñ7¸¸BÀQÐ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_alphaÚLTestDataFrameGroupByPlots.test_series_groupby_plotting_nominally_works_alpha!   su   € ØˆÜœŸ	™	×-Ñ-¨aÓ0×7Ñ7¸¸BÀQÐ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Ø”r—y‘y×,Ñ,¨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_applyÚDTestDataFrameGroupByPlots.test_plotting_with_float_index_works_apply4   s[   € äàÒ2Ø”r—y‘y×,Ñ,¨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   € ä�yŠy˜˜W aÓ(ˆÜ˜ ¨ °¸!¸Q¸ÀÈ"ÈbÈÐRÓSˆØ
ˆ6�
�‰˜2˜g�;¨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   € ä�yŠy˜˜W aÓ(ˆÜ˜  ¨°1°#°vÀ¸tÐDÓEˆØ
ˆ6�
�‰˜2˜g�;¨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_worksÚ3TestDataFrameGroupByPlots.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_lineÚ8TestDataFrameGroupByPlots.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ˆà�j‰j˜‹o×"Ñ"¨	°S¸CÐ"Ó@ˆô �3�s•8×'Ñ'Ó(¨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_scatterÚ2TestDataFrameGroupByPlots.test_plot_kwargs_scatter[   s]   € Ü˜š_¨c²?ÀCÌÈgËÐWÓXˆØ�j‰j˜‹o×"Ñ"×*Ñ*¨S°CÐ*Ó8ˆÜ�3�s•8×'Ñ'Ó(¨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\        W‚VR
7       \        V^ ,          VRR7       F  w  rš\        Wš4       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Ð2 c U¨S¨E Nˆä�b˜C˜5•j 2¨¨¥:Õ-°CÔ8ˆÜÜ�I‰I×!Ñ! !Ó$×4Ñ4°WÓ=ØØ˜#�Jô
ˆð
 �J‰J�s‹Oˆà—F‘F $¨v�FÖ6ˆDÜ˜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_raisesÚDTestDataFrameGroupByPlots.test_groupby_hist_frame_with_legend_raisess   s•   € ô �b˜C˜5•j 2¨¨¥:Õ-°CÔ8ˆÜÜ�I‰I×!Ñ! !Ó$×4Ñ4°WÓ=ØØ˜#�Jô
ˆð
 �J‰J�s‹Oˆä�]Š]œ:Ð-O×PÖPØ�F‰F˜$ v°SˆFÔ9÷ Q×P×PÒPús   Â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’   € ä�b˜C˜5•j 2¨¨¥:Õ-°CÔ8ˆÜÜ�I‰I×!Ñ! !Ó$×4Ñ4°WÓ=ØØ˜#�Jô
ˆð
 �J‰J�s‹Oˆà�C•&—+‘+ T�+Ö*ˆBÜ˜b¨1°VÕ<Ü   c¨3 ZÖ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_raisesÚETestDataFrameGroupByPlots.test_groupby_hist_series_with_legend_raises�   s‘   € ä�b˜C˜5•j 2¨¨¥:Õ-°CÔ8ˆÜÜ�I‰I×!Ñ! !Ó$×4Ñ4°WÓ=ØØ˜#�Jô
ˆð
 �J‰J�s‹Oˆä�]Š]œ:Ð-O×PÖPØ�F‰F˜$ cˆFÔ*÷ Q×P×PÒPús   Â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ò/ò)ò.ò.ð
 ‡[�[×ÑÐ8¸9ÀhÐ: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    