
    Mh                     @    S SK r S SKJrJrJr  S SKJr   " S S5      rg)    N)	DataFrameIndexSeriesc                   b    \ rS rSrS rS r\R                  R                  S5      S 5       r	Sr
g)TestToFrame   c                 N   [        [        S5      5      nUR                  S 5      n[        S /[        S9n[
        R                  " UR                  U5        UR                  S5      R                  S 5      n[        S /[        S9n[
        R                  " UR                  U5        g )N   )dtypefoo)	r   rangeto_framer   objecttmassert_index_equalcolumnsrename)selfserresult	exp_indexs       [/var/www/html/env/lib/python3.13/site-packages/pandas/tests/series/methods/test_to_frame.py test_to_frame_respects_name_none,TestToFrame.test_to_frame_respects_name_none   s}     U1Xd#4&/	
fnni8E"++D14&/	
fnni8    c                    S Ul         UR                  5       n[        UR                  UR                  S9n[
        R                  " X#5        SUl         UR                  5       n[        SUR                  0UR                  S9n[
        R                  " X#5        UR                  SS9n[        SUR                  0UR                  S9n[
        R                  " X#5        g )N)indextestnametestdifferentname)r!   r   r   valuesr   r   assert_frame_equal)r   datetime_seriesrsxps       r   test_to_frameTestToFrame.test_to_frame   s    #%%'--_5J5JK
b%)%%'//08M8M
 	b%%%?%;o445_=R=R
 	b%r   zMignore:Passing a BlockManager|Passing a SingleBlockManager:DeprecationWarningc                    ^  " U4S jS[         5      n " S S[        5      mU" / SQSS9nUR                  5       n[        UT5      (       d   eT" S/ SQ05      n[        R
                  " X45        g )Nc                   ,   > \ rS rSr\U 4S j5       rSrg)=TestToFrame.test_to_frame_expanddim.<locals>.SubclassedSeries3   c                    > T$ )N )r   SubclassedFrames    r   _constructor_expanddimTTestToFrame.test_to_frame_expanddim.<locals>.SubclassedSeries._constructor_expanddim4   s	    &&r   r.   N)__name__
__module____qualname____firstlineno__propertyr0   __static_attributes__)r/   s   r   SubclassedSeriesr+   3   s    ' 'r   r8   c                       \ rS rSrSrg)<TestToFrame.test_to_frame_expanddim.<locals>.SubclassedFrame8   r.   N)r2   r3   r4   r5   r7   r.   r   r   r/   r:   8   s    r   r/   )      r
   Xr    )r   r   r   
isinstancer   r#   )r   r8   r   r   expectedr/   s        @r   test_to_frame_expanddim#TestToFrame.test_to_frame_expanddim-   sd    	'v 	'
	i 	 ys3&/2222"C#34
f/r   r.   N)r2   r3   r4   r5   r   r'   pytestmarkfilterwarningsrA   r7   r.   r   r   r   r      s2    9&& [[W00r   r   )	rC   pandasr   r   r   pandas._testing_testingr   r   r.   r   r   <module>rI      s!     
 40 40r   