+
    xȇi              	          R t ^ RIt^ RIHt ^ RIt^ RIHt ^ RIHt	 ^ RI
Ht R tR t]P                  P                  R]P                   ! RR.R	R
7      ]P"                  P%                  RR	R.R7      .4      R 4       tR tR# )a;  
Tests that apply to all groupby operation methods.

The only tests that should appear here are those that use the `groupby_func` fixture.
Even if it does use that fixture, prefer a more specific test file if it available
such as:

 - test_categorical
 - test_groupby_dropna
 - test_groupby_subclass
 - test_raises
N)Pandas4Warning)	DataFrame)get_groupby_method_argsc                    \        R . R. R. /4      P                  . R
O4      pVP                  . R
ORR7      p\        W 4      p\	        W4      pV R8X  d
   \
        pRpMRpRp\        P                  ! WVR	7      ;_uu_ 4        V! V!  P                  pRRR4       VP                  p\        P                  ! XV4       R#   + '       g   i     L5; i)abcT)
group_keyscorrwith'DataFrameGroupBy.corrwith is deprecatedN matchr   r   r   )
r   	set_indexgroupbygetattrr   r   tmassert_produces_warningindexassert_index_equal)	groupby_funcdfgbmethodargswarnwarn_msgresultexpecteds	   &        u/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/groupby/test_all_methods.py,test_multiindex_group_all_columns_when_emptyr!      s    	CS"c2.	/	9	9/	JB	O	5BR&F"<4Dz!<		#	#D	9	9$$ 
:xxH&(+ 
:	9s   B??C	c                    VR 8X  d2   RpV P                  \        P                  P                  VR7      4       \	        . RO. RO. RO.\        R4      R7      p\        W4      pVP                  RVR7      p\        Wa4      ! V!  pVP                  . RO^R	7      p\        W4      p	VP                  RVR7      p
\        W4      ! V	!  pVR9  d   VP                  RR/R7      p\        P                  ! W{4       R
# )r
   z:GH#50845 - corrwith fails when there are duplicate columns)reasonabbcolumnsr   )as_indexr   r   )axisN)         )r)         )         r   )sizengroupcumcount)applymarkerpytestmarkxfailr   listr   r   r   set_axisrenamer   assert_equal)requestr   r'   msgr   r   r   r   expected_dfexpected_argsexpected_gbr   s   &&&         r    test_duplicate_columnsrA   *   s    z!JFKK--S-9:	Iy)4d5k	JB"<4D	C(	+BR&-F++oA+6K+LFM%%cH%=K{1=AH99??C:?6OOF%    idxr   foo)namebar)namesc                    V R9   d   \         P                  ! RV  24       \        ^^..VR7      pVP                  ^ .4      p\	        W4      pV R8X  d
   \
        pRpMRpRp\        P                  ! WVR7      ;_uu_ 4        \        W04      ! V!  pRRR4       XP                  R	8X  g   Q h\        P                  ! VP                  V4       R#   + '       g   i     LF; i)
r1   zNot applicable for r%   r
   r   Nr   r   >   r1   r2   r3   )r)   r.   )r5   skipr   r   r   r   r   r   r   shaper   r&   )r   rC   r   grp_byr   r   r   r   s   &&      r    test_dup_labels_output_shaperL   =   s     55),89	QF8S	)BZZ_F"<4Dz!<		#	#D	9	9.5 
: <<6!!!&..#.	 
:	9s   CC	c                    V R 8X  d   R# \        R. ROR. R	O/RR7      p\        R. R
OR. RO/R. ROR7      RRR1,          pVR,          P                  P                  P                  R,          '       d   Q h\	        W4      pVP                  R4      p\        W@4      ! V!  pVP                  R4      p\        W`4      ! V!  p\        P                  ! WW4       R# )r
   Nr   r   Int64)dtype)rO   r   C_CONTIGUOUS)r)   r)   r.   )r*   r,   r/   )r.   r)   r)   )r/   r,   r*   )r.   r)       )	r   array_maskflagsr   r   r   r   r;   )r   r   reversedr   gb_reversedr   r   r   s   &       r    test_not_c_contiguous_maskrX   Y   s    z!	CC37	CB	ii(y
dH }""((..~>>>>"<4D""3'K[/6F	CBr($/HOOF%rB   )r   r   rY   )__doc__r5   pandas.errorsr   pandaspdr   pandas._testing_testingr   pandas.tests.groupbyr   r!   rA   r6   parametrizeIndex
MultiIndexfrom_tuplesrL   rX    rB   r    <module>rf      s     (    8,$&& 	
#s%(
!!":5%.!Q//*&rB   