+
    xȇi                       ^ RI t ^ RIHtHtHtHt ^ RIHt ^ RIH	t	 ^ RI
HtH
t
Ht ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RIt^ RIHt ^ R	IHt ^ R
IHt ^ RIHt ^ RIHtH t H!t!H"t" ^ RI#t$^ RI#H%t%H&t&H't'H(t(H)t)H*t*H+t+H,t,H-t-H.t.H/t/H0t0H1t1H2t2H3t3 ^ RI4H5t6 ^ RI7H8t8H9t9H:t:H;t;H<t< . ROt=. ROt> ! R R4      t? ! R R4      t@ ! R R4      tA ! R R4      tBR tC ! R R4      tD ! R R4      tER# )    N)OrderedDictabcdefaultdict
namedtupleIterator)make_dataclass)datedatetime	timedelta)ma)mrecords)lib)np_version_gt2)IntCastingNaNError)is_integer_dtype)DatetimeTZDtypeIntervalDtypeNumpyEADtypePeriodDtype)CategoricalCategoricalIndex	DataFrameDatetimeIndexIndexInterval
MultiIndexPeriod
RangeIndexSeries	Timedelta	Timestampcut
date_rangeisna)DatetimeArrayIntervalArrayPeriodArraySparseArrayTimedeltaArrayc                     a  ] tR t^Lt o 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R t]P                  P                  RR R R R R R R R R R R .4      R 4       tR t]P                  P                  R. .]! ^4      ]! ^ 4      3. . .]! ^4      ]! ^ 4      3R ER 4       .]! ^4      ]! ^ 4      3.4      R 4       tR  tR! tR" tR# tR$ tR% tR& tR' tR( t]P                  P                  R)R*/ .R*R+^R,R-R.R//.R0/ ..4      R1 4       tR2 t R3 t!R4 t"R5 t#R6 t$]P                  P                  R7]%PL                  ! ER.]'R87      ]%PL                  ! ^^A,          .4      ER.]%PL                  ! ER.]'R87      ]%PL                  ! ER.4      ^^A,          ) ^,
          ..4      R9 4       t(]P                  P                  R7]%PL                  ! ^.]%PR                  R87      ]%PL                  ! ^.]%PT                  R87      ]%PL                  ! ^.]%PV                  R87      ]%PR                  ! ^4      .]%PT                  ! ^4      .]%PV                  ! ^4      ..4      R: 4       t,R; t-R< t.R= t/R> t0R? t1R@ t2RA t3RB t4]P                  P                  RC^]%Pj                  RDRE.4      RF 4       t6]P                  P                  RG^]%Pj                  RD]7! RH4      .4      RI 4       t8]P                  P                  RG]%Pj                  RD]7! RH4      .4      RJ 4       t9RK t:RL t;RM t<RN t=RO t>RP t?RQ t@RR tARS tBRT tCRU tDRV tERW tFRX tGRY tHRZ tIR[ tJR\ tK]P                  P                  R]R^ R_3R` Ra3Rb R_3Rc Rd3.4      Re 4       tLRf tMRg tN]P                  P                  Rh]O! Ri4      ]P! R4      3]Q! ^ ^Rj7      ]R! RkRl4      3]S! RmRnRo7      P                  Rp4      ]U! RpRnRq7      3.4      Rr 4       tVRs tWRt tXRu tYRv tZ]P                  P                  Rw4      Rx 4       t\Ry t]Rz t^R{ t_]P                  P                  R|RD]`! ]a! ^
4      4      R}R~.]']%P                  3RDRDR}R~.Rk]%P                  ! Rk4      3RD]`! ]a! ^
4      4      R}R~.]d]%P                  ! R4      3/ RDR-R/.RD]%P                  3R~^/]`! ]a! ^
4      4      ]`! R4      ]d]%P                  ! R4      3.4      R 4       te]P                  P                  R. EROR]fP                  3. EROR]fP                  3. EROR]fP                  3. EROR]fP                  334      R 4       tkR tlR tmR tnR toR tpR tqR trR tsR ttR tuR tv]P                  P                  R]S! R4      ..R]S! R4      /.R]S! R4      ./R]S! R4      /.4      R 4       twR txR tyR tzR t{R t|R t}R t~R tR tR t]P                  P                  R]].4      R 4       t]P                  P                  R]].4      R 4       tR tR tR tR tR tR tR t]P                  P                  RER. 3ER. .3ERERER.3ER. . .3. . 3. . .3^.^.3^.^..3. ER O. ER!O3. ER O. ER!O.3.4      R 4       tR tR tR tR tR tR tR tR tR t]P                  P                  R. ER"O4      R 4       tR tR tR tR tR tR tR tR tR tR tR tR tR tR t]P                  P                  R]%PL                  ! RDRDRDRD]EPN                  ! 4       RD.4      ]%PL                  ! RDRD]EPN                  ! 4       RD.4      ]%EPP                  ! R4      .RD..]%EPP                  ! R4      .]fEPR                  ..RD.]%EPP                  ! R4      ..RD.]fEPR                  ..]fEPR                  .]%EPP                  ! R4      ..]fEPR                  .RD...4      R 4       t]P                  P                  R. ER#O4      ]P                  P                  R. ER$O4      R 4       4       t]P                  P                  R. ER#O4      ]P                  P                  R. ER%O4      R 4       4       tR tR tR tR tR t]P                  P                  R]! . ER O. ER!O.^]%Pj                  .R7      ]! . ER O. ER!O.RR]%Pj                  .R7      ]! . ER&O. ER'O.]%Pj                  RR]%Pj                  .R7      ]! . ER(O. ER'O.]%Pj                  RR]%Pj                  .R7      ]! . ER(O. ER'O.]%Pj                  ^^^.R7      .4      R 4       tR tR tR tR tR tR tR tR t]P                  P                  R]EPz                  ]EP|                  ,           ]EP~                  ,           ]EP                  ,           4      R 4       t]P                  P                  R]EP                  ]EP                  ,           ]EP                  ,           4      R 4       tR t]P                  EP                  ]P                  P                  R. ER)O4      R 4       4       tR t]P                  P                  R]! ]`! R4      4      ]! ^]%Pj                  ]%Pj                  ]%Pj                  .4      ]! ]Q! ^ ^4      ]Q! ^^4      .4      ]! ]fEP                  ! RRRR7      4      .4      R 4       tR tR t]P                  P                  R4      R 4       tR tR tR tR tR t]P                  P                  R^^.RR.]`! ]! R^RR7      4      ]`! ]! R^RRnR7      4      ]Q! ^ ^Rj7      ..4      R 4       tR t]P                  P                  ER RR.4      ER 4       tER tER tER tER t]P                  P                  ER^.^..]%PL                  ! ^.^..4      3]%PL                  ! ^.^..4      ^.^..3]%PL                  ! ^.^..4      ]%PL                  ! ^.^..4      3.4      ER 4       tER tER	 tER
 tER tER tER t]P                  P                  ER]].4      ER 4       tER t]P                  P                  ER]]]]]fPL                  ]fEP                  .4      ER 4       tER tER tERtV tRD# (*  TestDataFrameConstructorsc                    \         P                  ! ^4      P                  ^^4      p\        V\        R7      p\        VP                  \        4      RR7      p\        P                  ! W#4       R# )   dtypestrN)nparangereshaper   r1   astypetmassert_frame_equal)selfarrdfexpecteds   &   t/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/frame/test_constructors.py,test_constructor_from_ndarray_with_str_dtypeFTestDataFrameConstructors.test_constructor_from_ndarray_with_str_dtypeM   sL     iim##Aq)s#&SZZ_E:
b+    c                "   \        R ^RR7      pVP                  P                  ^^4      p\        V4      p\        ^ VR,          ^VR,          /4      p\        P
                  ! W44       \        VP                  P                  4      ^8X  g   Q hR# )
2016-01-01
US/PacificperiodstzNNNNr   rG      )	r$   _datar4   r   r6   r7   len_mgrblocks)r8   dtidtar:   r;   s   &    r<   &test_constructor_from_2d_datetimearray@TestDataFrameConstructors.test_constructor_from_2d_datetimearrayU   ss    q\Bii1%s^aTAs4y9:
b+277>>"a'''r?   c                6   \        R 4      P                  R4      pVP                  R4      p\        RV/^ .R7      p\        RV./4      p\        P
                  ! W#RR7       \        RVR^./4      p\        RV.R^./4      p\        P
                  ! W#4       R# )	z2019-11-03 01:00:00-0700zAmerica/Los_AngelesnsdtindexFcheck_index_typevalueN)r"   
tz_convertas_unitr   r6   r7   )r8   rT   r:   r;   s   &   r<   )test_constructor_dict_with_tzaware_scalarCTestDataFrameConstructors.test_constructor_dict_with_tzaware_scalar_   s    12==>STZZbz!-dRD\*
bUC b'A3/0dRD'A378
b+r?   c                   \         P                  ! ^\         P                  .^^..4      pRp\        P                  ! \
        VR7      ;_uu_ 4        \        VRR7       RRR4       \        P                  ! \
        VR7      ;_uu_ 4        \        V^ ,          R^ R7       RRR4       R#   + '       g   i     LT; i  + '       g   i     R# ; i)rI   9Cannot convert non-finite values \(NA or inf\) to integermatchi8r/   Nr0   name)r2   arraynanpytestraisesr   r   r    )r8   r9   msgs   &  r<   -test_construct_ndarray_with_nas_and_int_dtypeGTestDataFrameConstructors.test_construct_ndarray_with_nas_and_int_dtypem   s    hhBFFaV,-J]]-S99c& : ]]-S993q6A. :9	 :9 :99s   B+B>+B;	>C	c                    \        \        P                  ! 4       \        P                  ! 4       .4      pV^ ,          P                  \        P                  ! R4      8X  g   Q hR# )r   M8[us]N)r   r   nowr0   r2   r8   r:   s   & r<   %test_construct_from_list_of_datetimes?TestDataFrameConstructors.test_construct_from_list_of_datetimesx   s<    78!u{{bhhx0000r?   c                $   \        R R.RR7      pVP                  R4      p\        \        P                  ! VP                  4       RR7      RR7      pVP                  VP                  8X  g   Q h\        V4      p\        P                  ! WC4       R# )z2013-1-1 13:00z2013-1-2 14:00Brd   rB   objectr/   N)	r   tz_localizer    r2   re   tolistr0   r6   assert_series_equal)r8   naiveidxr;   results   &    r<   +test_constructor_from_tzaware_datetimeindexETestDataFrameConstructors.test_constructor_from_tzaware_datetimeindex|   ss     /1ABM-"((3::<x@sK~~*** 
v0r?   c                |    R p\        R^^.V^^./4      pVP                  RR7      pR^V^/R^V^/.pWC8X  g   Q hR# )_barecordsorientNr   to_dict)r8   col_underscorer:   dref_ds   &    r<   6test_columns_with_leading_underscore_work_with_to_dictPTestDataFrameConstructors.test_columns_with_leading_underscore_work_with_to_dict   sX    aV^aV<=JJiJ(q.!,sA~q.IJzzr?   c                |    R p\        R^^.V^^./4      pVP                  RR7      pR^V^/R^V^/.pWC8X  g   Q hR# )1_br   r   r   Nr   )r8   col_with_numr:   r   r   s   &    r<   Atest_columns_with_leading_number_and_underscore_work_with_to_dict[TestDataFrameConstructors.test_columns_with_leading_number_and_underscore_work_with_to_dict   sX    aV\Aq6:;JJiJ(q,*S!\1,EFzzr?   c                @   \         P                  ! R R4      p\         P                  ! V.\        R7      pV\        J d   VP                  ^^4      pRp\        P                  ! \        VR7      ;_uu_ 4        V! VRR7       RRR4       R#   + '       g   i     R# ; i)NaTrS   r/   =Invalid type for timedelta scalar: <class 'numpy.datetime64'>r`   m8[ns]N)	r2   
datetime64re   ru   r   r4   rg   rh   	TypeError)r8   frame_or_seriesnatr9   ri   s   &&   r<   ,test_array_of_dt64_nat_with_td64dtype_raisesFTestDataFrameConstructors.test_array_of_dt64_nat_with_td64dtype_raises   sk    mmE4(hhuF+i'++a#CM]]9C00Cx0 1000s   7BB	kindmMc                
   VR 8X  d
   Rp\         pMRp\        p\        P                  ! ^RR7      P	                  V4      P                  ^^4      pV\        J d
   VR,          pV! V\        R7      pVP                  P                  ^ ,          P                  P                  \        8X  g   Q h\        VP                  P                  ^ ,          P                  P                  4       ^ ,          V4      '       g   Q hV! V! V4      \        R7      pVP                  P                  ^ ,          P                  P                  \        8X  g   Q h\        VP                  P                  ^ ,          P                  P                  4       ^ ,          V4      '       g   Q hV! V! V4      \        \        4      R7      pVP                  P                  ^ ,          P                  P                  \        8X  g   Q h\        VP                  P                  ^ ,          P                  P                  4       ^ ,          V4      '       g   Q hV\        J d   V Uu. uF  p\        V4      NK  	  ppV! V\        R7      pVP                  P                  ^ ,          P                  P                  \        8X  g   Q h\        VP                  P                  ^ ,          P                  P                  4       ^ ,          V4      '       g   Q hR# R# u upi )r   M8[ns]r   rb   r/   NrF   )r"   r!   r2   r3   viewr4   r    ru   rL   rM   valuesr0   
isinstanceravelr   r   )	r8   r   r   r0   scalar_typer9   objxserss	   &&&      r<   *test_datetimelike_values_with_object_dtypeDTestDataFrameConstructors.test_datetimelike_values_with_object_dtype   s-    3;E#KE#Kii&++E2::1a@f$d)Cc0xxq!((..&888#((//!,3399;A>LLLL oc2&Axxq!((..&888#((//!,3399;A>LLLLoc2,v:NOxxq!((..&888#((//!,3399;A>LLLLi''*+s!F1IsD+!$f5C88??1%,,22f<<<chhooa077==?BKPPPP (+s   L c                &   \        \        ^4      ^R7      p\        \        ^4      ^ R7      p\        V^ .R7      p\        . ^ .R7      p\        P                  ! W44       \        V^.R7      p\        . ^.R7      p\        P                  ! W44       R#    rt   columnsN)r    ranger   r6   r7   )r8   r   yr{   r;   s   &    r<   )test_series_with_name_not_matching_columnCTestDataFrameConstructors.test_series_with_name_not_matching_column   sv    58!$58!$1qc*R!-
f/1qc*R!-
f/r?   constructorc                     \        4       # Nr    r?   r<   <lambda>"TestDataFrameConstructors.<lambda>   s    IKr?   c                     \        R 4      # r   r   r   r?   r<   r   r      s    IdOr?   c                     \        R4      # Nr   r   r   r?   r<   r   r          IbMr?   c                     \        . 4      # r   r   r   r?   r<   r   r      r   r?   c                 &    \        R  R 4       4      # )c              3   $   "   T F  qx  K  	  R # 5ir   r   .0_s   & r<   	<genexpr>5TestDataFrameConstructors.<lambda>.<locals>.<genexpr>   s     _Aa   r   r   r   r?   r<   r   r      s    I__,r?   c                 *    \        \        ^ 4      4      # r   r   r   r   r?   r<   r   r      s    IeAh'r?   c                     \        R R7      # )Ndatar   r   r?   r<   r   r      s	    I4(r?   c                     \        RR 7      # )r   r   r   r   r?   r<   r   r      	    I2&r?   c                     \        . R 7      # )r   r   r   r?   r<   r   r      r   r?   c                 (    \        R  R 4       R7      # )c              3   $   "   T F  qx  K  	  R # 5ir   r   r   s   & r<   r   r      s     ?r!Arr   r   r   r   r   r?   r<   r   r      s    I?r?3r?   c                 ,    \        \        ^ 4      R7      # )r   r   r   r   r?   r<   r   r      s    I58,r?   c                    \        4       pV! 4       p\        VP                  4      ^ 8X  g   Q h\        VP                  4      ^ 8X  g   Q h\        P
                  ! W24       R# r   N)r   rK   rV   r   r6   r7   )r8   r   r;   r{   s   &&  r<   test_empty_constructor0TestDataFrameConstructors.test_empty_constructor   sN    " ;6<< A%%%6>>"a'''
f/r?   c                    \        \        ^ 4      \        ^ 4      R7      p\        / 4      p\        VP                  4      ^ 8X  g   Q h\        VP                  4      ^ 8X  g   Q h\
        P                  ! W!RR7       R# )r   rV   r   TrW   N)r   r   rK   rV   r   r6   r7   )r8   r;   r{   s   &  r<   #test_empty_constructor_object_index=TestDataFrameConstructors.test_empty_constructor_object_index   s]    :a=*Q-H26<< A%%%6>>"a'''
fFr?   z)emptylike,expected_index,expected_columnsc              #  $   "   T F  qx  K  	  R # 5ir   r   r   s   & r<   r   #TestDataFrameConstructors.<genexpr>   s     o"Qq"r   c                `    \        W#R 7      p\        V4      p\        P                  ! WT4       R# )r   Nr   r6   r7   )r8   	emptylikeexpected_indexexpected_columnsr;   r{   s   &&&&  r<   test_emptylike_constructor4TestDataFrameConstructors.test_emptylike_constructor   s&     >L9%
f/r?   c                n    V'       d   R M\         P                  pVR,          P                  V8X  g   Q hR# )r1   fooN)r2   object_r0   )r8   float_string_frameusing_infer_stringr0   s   &&& r<   test_constructor_mixed0TestDataFrameConstructors.test_constructor_mixed   s(    +!%(..%777r?   c                X   R p\         P                  ! \        VR7      ;_uu_ 4        \        R. R	O/\        P
                  R7       RRR4       \        \        P                  ! R
4      4      p\        P                  ! R
4      P                  4       VR&   Rp\         P                  ! \        VR7      ;_uu_ 4        \        P                  ! R
4      VR&   RRR4       \        P                  ! R
4      P                  4       VR&   R#   + '       g   i     L; i  + '       g   i     LL; i)z!could not convert string to floatr`   r   r/   Nr   z5Expected a 1D array, got an array with shape \(4, 2\)testfoo2r   bc)      )rg   rh   
ValueErrorr   r2   float64onesrw   )r8   ri   r:   s   &  r<   test_constructor_cast_failure7TestDataFrameConstructors.test_constructor_cast_failure  s     2]]:S11sO,BJJ? 2 rwwv' GGFO**,5	 H]]:S11BvJ 2 WWV_++-6
 21 21s    D;DD	D)	c                    \        R R.RR.RR./4      p\        V\        RR7      pRVR &   VR ,          ^ ,          R8X  g   Q hR	# )
col1      ?col2       @col3      @Tr0   copyg      i@N)r   float)r8   orig_dfnew_dfs   &  r<   test_constructor_dtype_copy5TestDataFrameConstructors.test_constructor_dtype_copy  sM    VcUFSE6C5IJ7%d;vvq!S(((r?   c                    \        ^^..4      p\        W^ ,          P                  R7      p^cVP                  R&   VP                  R,          ^8X  g   Q hR# )rI   r/   Nr   r   )r   r0   ilocr   )r8   r:   should_be_views   &  r<   ,test_constructor_dtype_nocast_view_dataframeFTestDataFrameConstructors.test_constructor_dtype_nocast_view_dataframe!  sJ    Ax "2U[[9$&D!yy!###r?   c                   \        ^^.^^..RR7      p\        VP                  V^ ,          P                  R7      pVP                  P                  ^ ,          P                  P
                  P                  '       g   Q hR# )rI   int64r/   N)r   r   r0   rL   rM   flagsc_contiguous)r8   r:   df2s   &  r<   +test_constructor_dtype_nocast_view_2d_arrayETestDataFrameConstructors.test_constructor_dtype_nocast_view_2d_array'  s^    AA'w7		A5xxq!((..;;;;;r?   c                   \         P                  ! R R.RR7      p\        VRR7      pV'       dY   V^ ,          P                  P                  R8X  d   M^\         P
                  ! V^ ,          P                  4       V4      '       g   Q hM)\         P
                  ! VP                  V4      '       g   Q h\        V\        RR7      p\         P
                  ! VP                  V4      '       g   Q hR# )	r   r   ru   r/   Fr   pyarrowr   N	r2   re   r   r0   storageshares_memoryto_numpyr   ru   r8   r   r9   r:   s   &&  r<   "test_1d_object_array_does_not_copy<TestDataFrameConstructors.test_1d_object_array_does_not_copy,  s    hhSz2s'!u{{""i/ ''1(8#>>>>##BIIs3333s&u5		3////r?   c                   \         P                  ! R R.RR..RR7      p\        VRR7      pV'       dY   V^ ,          P                  P                  R8X  d   M^\         P
                  ! V^ ,          P                  4       V4      '       g   Q hM)\         P
                  ! VP                  V4      '       g   Q h\        V\        RR	7      p\         P
                  ! VP                  V4      '       g   Q hR
# )r   r   r   r   ru   r/   Fr  r  r   Nr  r  s   &&  r<   "test_2d_object_array_does_not_copy<TestDataFrameConstructors.test_2d_object_array_does_not_copy=  s    hhc
S#J/x@s'!u{{""i/ ''1(8#>>>>##BIIs3333s&u5		3////r?   c                    \        ^R.RR..\        R7      pVP                  R,          e   Q hVP                  R,          R8X  g   Q hR# )rI   2Nr   r/   rI   r   r   rI   )r   ru   locro   s   & r<    test_constructor_dtype_list_data:TestDataFrameConstructors.test_constructor_dtype_list_dataN  sE    C4+.f=vvd|###vvd|s"""r?   c                .   \        4       p\        P                  ! R4      p\        P                  ! \
        RR7      ;_uu_ 4        \        V.4       RRR4       \        P                  ! \
        RR7      ;_uu_ 4        \        V.4       RRR4       \        R^^./4      p\        P                  ! \
        RR7      ;_uu_ 4        \        W.4       RRR4       R#   + '       g   i     L; i  + '       g   i     Lm; i  + '       g   i     R# ; i)r   zshape=\(1, 0, 0\)r`   NAzshape=\(2, 2, 1\)r  )r   r2   emptyrg   rh   r   )r8   r   r   s   &  r<   "test_constructor_list_of_2d_raises<TestDataFrameConstructors.test_constructor_list_of_2d_raisesS  s    KHHV]]:-ABBqcN C ]]:-ABBqcN C sQFm$]]:-ABBqf CB CB CB CBBs$   C>C0DC-	0D 	D	ztyp, adr   r'  rs   r   Cbarintc           
        VR 8X  d[   \         pV Uu. uFG  p\        P                  ! \        P                  P	                  ^4      P                  ^
4      VR7      NKI  	  ppMbVR8X  d\   \
        pV Uu. uFI  p\        P                  ! \        P                  P	                  ^4      P                  ^
^
R7      VR7      NKK  	  pp\        XX4       F  w  rFVP                  V8X  d   K  Q h	  VP                  \        \        W54      4      4       \        V4      p\
        \         ,           pV F%  pWG9   g   K  VP                  V,          V8X  d   K%  Q h	  R# u upi u upi )r-  r/   r   )sizeN)MIXED_INT_DTYPESr2   re   randomdefault_rngMIXED_FLOAT_DTYPESintegerszipr0   updatedictr   dtypes)r8   typadr8  r   arraysr   r:   s   &&&     r<   test_constructor_mixed_dtypes7TestDataFrameConstructors.test_constructor_mixed_dtypesa  s,    %<%FPVPV1..q188<AFPV  F G^'F  A ..q1::2B:GqQ  
 'DA77a<< (
		$s6*+,r]#&66Awyy|q((( !
s   AE3AEc                   \         P                  P                  ^4      P                  ^
4      P                  \         P                  4      p\         P                  P                  ^4      P                  ^
4      P                  \         P
                  4      p\        RVRV/4      pVP                  VP                  P                  8X  g   Q hVP                  VP                  P                  8X  g   Q hR# )r   r   r   N)
r2   r1  r2  r5   	complex64
complex128r   r0   r   r   r8   r   r   r:   s   &   r<   test_constructor_complex_dtypes9TestDataFrameConstructors.test_constructor_complex_dtypes  s    II!!!$++B/66r||DII!!!$++B/66r}}EQQ'(ww"$$**$$$ww"$$**$$$r?   c                \   \        R RR./VR7      pVP                  4       p\        R RR./4      p\        P                  ! W44       VP                  R,          e   Q h\        R R\
        P                  ./VR7      p\
        P                  ! VP                  R,          4      '       g   Q hR# )r'  r   Nr/   FTr!  )r   r%   r6   r7   r  r2   rf   isnan)r8   string_dtyper:   r{   r;   s   &&   r<   $test_constructor_dtype_str_na_values>TestDataFrameConstructors.test_constructor_dtype_str_na_values  s    c4[)>cE4=12
f/wwt}$$$c266]+<@xx&&&&r?   c                   VP                  R R7      p\        VP                  P                  4      RRR1,          VP                  n        VP                  p\        V4      p\        P                  ! VP                  \        VP                  P                  4      4       \        W#R7      p\        P                  ! VP                  \        VP                  P                  4      4       \        P                  ! VP                  V4       \        P                  ! \        V4      4      RRR1,          p\        W&RR.R7      p\        W&R7      P                  RR.R7      p\        P                  ! Wx4       R# )FrU   Nr+  rs   r   r   )
to_recordslistr0   namesrV   r   r6   assert_index_equalr   r   r2   r3   rK   reindexr7   )	r8   float_framerecrV   r:   r  rngdf3r;   s	   &&       r<   test_constructor_rec.TestDataFrameConstructors.test_constructor_rec  s   $$5$1syy/"5		!!s^
bjj%		*@A)
ckk5+AB
cii/ iiC!$B$'c
;S,44c3Z4H
c,r?   c           
         \        ^ \        P                  ! ^
\        R7      ^\        P                  ! ^
\        R7      /4      pVP
                  P                  \        P                  8X  g   Q hR# )r   r/   N)r   r2   r   boolzerosr   r0   bool_ro   s   & r<   test_constructor_bool/TestDataFrameConstructors.test_constructor_bool  sE    2772T2Arxx$7OPQyy"((***r?   c                   \         P                  ! \        ^^
4       Uu. uF  pRV,
          NK  	  up\         P                  R7      p\	        RV/4      pVR,          P
                  \         P                  8X  g   Q h. ROpRR	.p\         P                  ! \        V4      3VR7      pWFR&   \	        V4      pVR,          P
                  \         P                  8X  g   Q hR# u upi )
rI   r/   r   uidrG   N            ))l   Y2<   )l   FJLW]L*    )l   M:M^ -   )l   8Ma i  )l   r*R3_PvN r_  )r]  u8)scorerb  )r2   re   r   uint64r   r0   rX  rK   )r8   ir   r{   data_scoresr0   r   	df_crawlss   &       r<   test_constructor_overflow_int649TestDataFrameConstructors.test_constructor_overflow_int64  s    eArl;l5199l;299MC=)c{  BII---
 0xx[)+59QdO	%%222# <s   C r   r/   c                    V^ ,          p\        V4      pV^ ,          P                  \        8X  g   Q hV^ ,          ^ ,          V8X  g   Q hR# r   )r   r0   ru   r8   r   rY   r{   s   &&  r<   test_constructor_int_overflow7TestDataFrameConstructors.test_constructor_int_overflow  sC     q	6"ay&(((ay|u$$$r?   c                    V^ ,          p\        V4      pV^ ,          P                  VP                  8X  g   Q hV^ ,          ^ ,          V8X  g   Q hR# r   r   r0   rk  s   &&  r<   test_constructor_numpy_uints6TestDataFrameConstructors.test_constructor_numpy_uints  sG     q	6"ay%++---ay|u$$$r?   c           	     H   ^dp\        \        V4      4      p\        P                  P	                  ^4      P                  V4       V Uu. uF	  pRVR 2NK  	  pp\        \        \        V^ ..V,          4      4      4      pV\        VP                  4      8X  g   Q hR# u upi )d   r'  r   N)
rL  r   r2   r1  r2  shuffler   r   r5  r   )r8   nitemsnumsre  r;   r:   s   &     r<   test_constructor_ordereddict6TestDataFrameConstructors.test_constructor_ordereddict  s    E&M"
		a ((.'+,t!a!uIt,{3x1##@AB4

++++ -s   	Bc           	        \        \        P                  ! ^\        P                  R7      \	        R^R7      R7      pVR,          p\        RVRV/4      p\        V4      ^8X  g   Q h\        V4      ^8X  g   Q h\        P                  ! VR,          VP                  R4      4       \        \        P                  ! \        P                  .^,          VP                  .4      VP                  RR7      p\        P                  ! WCR,          4       \        RVRV/. ROR
7      p\        V4      \        V4      8X  g   Q hRV9  g   Q h\        VR	,          4      P                  4       '       g   Q h\        \        4       4      ^ 8X  g   Q hRp\         P"                  ! \$        VR7      ;_uu_ 4        \        RRRRR/R. RO/4       RRR4       R#   + '       g   i     R# ; i)   r/   
2020-01-01rD   rU   :r   NNr   r   rV   rd   r   r   <Mixing dicts with non-Series may lead to ambiguous ordering.r`   r'  r   r   rs   N)r   r   col4r   )r    r2   r3   r   r$   r   rK   r6   rx   renameconcatenaterf   r   rV   r%   allrg   rh   r   )r8   datetime_seriesdatetime_series_shortframeexpri   s   &     r<   test_constructor_dict/TestDataFrameConstructors.test_constructor_dict  s    IIb

+:lTV3W
 !0 36?F<QRS ?#r)))()R///
uV}o.D.DV.LMNNRVVHqL*?*F*FGH!''

 	s&M2_f.CD,

 5zS!67777U"""E&M"&&(((( 9;1$$$ M]]:S11sS#sC0#GH 2111s   0GG!	c                    \        R R^R^//4      p\        P                  ! VP                  \	        RR.4      4       R# )r'  1r   N)r   r6   rN  rV   r   r8   r  s   & r<   test_constructor_dict_length17TestDataFrameConstructors.test_constructor_dict_length1  s7    3aa 012
ekk5#s+<=r?   c                ^    \        . RO4      p\        / VR7      pVP                  VJ g   Q hR# )r   rU   Nr   rI   r   )r   r   rV   r8   rz   r  s   &  r<    test_constructor_dict_with_index:TestDataFrameConstructors.test_constructor_dict_with_index  s*    I"C({{c!!!r?   c                    \        . RO4      p\        / WR7      pVP                  VJ g   Q hVP                  VJ g   Q h\	        VP
                  4      ^8X  g   Q hR# )r   r   Nr  )r   r   rV   r   rK   _seriesr  s   &  r<   ,test_constructor_dict_with_index_and_columnsFTestDataFrameConstructors.test_constructor_dict_with_index_and_columns$  sS    I"C5{{c!!!}}###5==!Q&&&r?   c                    \        R . R. /R R.R7      p\        P                  ! VP                  \	        ^ 4      RR7       R# )r'  rs   r   TexactN)r   r6   rN  rV   r   r  s   & r<   $test_constructor_dict_of_empty_lists>TestDataFrameConstructors.test_constructor_dict_of_empty_lists,  s5    3C,sCjA
ekk:a=Er?   c                    \        R R/^ .R7      p\        R R./^ .R7      pVP                  ^ R 4      e   Q hVP                  ^ R 4      e   Q h\        P                  ! W4       R# )r   NrU   )r   
_get_valuer6   r7   )r8   
frame_noneframe_none_lists   &  r<   test_constructor_dict_with_none9TestDataFrameConstructors.test_constructor_dict_with_none1  sj     T{1#6
#S4&M!=$$Q,444))!S1999
j:r?   c                F   R p\         P                  ! \        VR7      ;_uu_ 4        \        RR/4       RRR4       \         P                  ! \        VR7      ;_uu_ 4        \        RR/R.R7       RRR4       R#   + '       g   i     LO; i  + '       g   i     R# ; i)2If using all scalar values, you must pass an indexr`   r   gffffff?Nr   rg   rh   r   r   r8   ri   s   & r<   test_constructor_dict_errors6TestDataFrameConstructors.test_constructor_dict_errors:  sl     C]]:S11sCj! 2 ]]:S11sCj3%0 21 21 211s   A<!B<B	B 	scalarNDc                l    \        R V/R.R7      p\        R.R7      p\        P                  ! W#4       R# )r   r   r   Nr   )r8   r  r{   r;   s   &&  r<   %test_constructor_invalid_items_unused?TestDataFrameConstructors.test_constructor_invalid_items_unusedD  s0     C=3%8cU+
f/r?   rY   rf   c           	     0   ^V^.pRV.p^ ^.^^.^^..p\        ^4       Uu/ uF  qRV,          \        WE,          VR7      bK  	  pp\        V4      P                  ^4      P                  R^R7      p\        \        P
                  ! ^RR7      P                  ^^4      W2R7      p\        P                  ! Wx4       \        WcR7      P                  R^R7      p\        P                  ! Wx4       \        WcVR7      p\        P                  ! Wx4       R# u upi )rI   r   rU   axisr  r/   r   N)	r   r    r   sort_valuesr2   r3   r4   r6   r7   	r8   rY   colsrz   r   r   r   r{   r;   s	   &&       r<   test_constructor_dict_nan_key7TestDataFrameConstructors.test_constructor_dict_nan_keyK  s     5!}Ela&1a&1a&)?DQxHx!Q	55xH4,,Q/;;Ca;HIIaw'//15S
 	f/4+77!7D
f/4D9
f/ Is   #Dc           	     l   \        RV^3^V3.4      p\        RV3V^3.4      p^ ^.^^.^^..p\        ^4       Uu/ uF  qRV,          \        WE,          VR7      bK  	  pp\        V4      P	                  R4      P	                  RV3^R7      p\        \
        P                  ! ^RR7      P                  ^^4      W2R7      p\        P                  ! Wx4       \        WcR7      P	                  RV3^R7      p\        P                  ! Wx4       \        WcVR7      p\        P                  ! Wx4       R# u upi )	   r   rU   r  r  r/   r   N)r     )
r   r   r    r   r  r2   r3   r4   r6   r7   r  s	   &&       r<   #test_constructor_dict_nan_tuple_key=TestDataFrameConstructors.test_constructor_dict_nan_tuple_key^  s     hb%[9:c5\E1:./a&1a&1a&)?DQxHx!Q	55xH4,,X6BBC<VWBXIIaw'//15S
 	f/4+77e17M
f/4D9
f/ Is   #D1c                   \        \        P                  ! ^
\        P                  R7      \	        R^
R7      R7      pVR,          pRVRV/p\        VR7      p\        V\        R	4      R
7      p\        P                  ! WE4       R# )
   r/   r{  r|  rU   Nr   Nr   r   r   bar   r   N)	r    r2   r3   r   r$   r   rL  r6   r7   )r8   r  r  r   r  r;   s   &     r<   %test_constructor_dict_order_insertion?TestDataFrameConstructors.test_constructor_dict_order_insertionq  sn     IIb

+:lTV3W
 !0 3 'o>q!!T$Z8
e.r?   c                    \        \        P                  ^^.^^^./\        P                  ^.R7      p\        ^^.^^..\        P                  ^.R7      p\        P                  ! W4       R# )rI   r   N)r   r2   rf   r6   r7   r8   r{   r;   s   &  r<   )test_constructor_dict_nan_key_and_columnsCTestDataFrameConstructors.test_constructor_dict_nan_key_and_columns~  sZ    BFFQFA1v6Lq!fq!f-{C
f/r?   c                   . ROp\         P                  ! V4      p\        W"R7      p\        V4      P                  P                  4       P                  4       '       g   Q h. ROp\         P                  ! V4      p\        W"R7      p\        V4      P                  P                  4       P                  4       '       g   Q hR# )r   r   N)r      r  r  r  )r  r  r  )r   from_tuplesr   r%   r   r   r  )r8   tuplesmir:   s   &   r<   test_constructor_multi_index6TestDataFrameConstructors.test_constructor_multi_index  s     *##F+R,Bx$$&**,,,,)##F+R,Bx$$&**,,,,r?   c           	     h   \        ^..^..^^.R7      p\        ^^.\        ^^.RR7      \        ^..^ ..R7      R7      p\        P                  ! W4       \        ^..^..^^..R7      p\        ^^.\        ^^..^ ^..R7      \        ^..^ ..R7      R7      p\        P                  ! W4       R# )rI   r   rV   r  r/   )levelscodesr   N)r   r   r   r6   r7   r8   r:   r;   s   &  r<   test_constructor_2d_index3TestDataFrameConstructors.test_constructor_2d_index  s     useAq6:FAg.seQC59

 	b+useQF8<FaVHaVH=seQC59

 	b+r?   c                   R p\         P                  ! \        VR7      ;_uu_ 4        \        \        P
                  ! ^ 4      ^.R7       RRR4       Rp\         P                  ! \        VR7      ;_uu_ 4        \        RRRRR/R. RO/4       RRR4       R	p\         P                  ! \        VR7      ;_uu_ 4        \        \        P                  ! ^4      P                  R4      . RO\        R
^R7      R7       RRR4       \        P                  ! . RO.4      pRp\         P                  ! \        VR7      ;_uu_ 4        \        ^ .\        ^4      VR7       RRR4       \        P                  ! . RO4      pRp\         P                  ! \        VR7      ;_uu_ 4        \        ^ .\        ^4      VR7       RRR4       \         P                  ! \        RR7      ;_uu_ 4        \        \        P                  ! R4      . RO^.R7       RRR4       Rp\         P                  ! \        VR7      ;_uu_ 4        \        \        P                  P                  ^4      P                  R4      . RO^.R7       RRR4       Rp\         P                  ! \        VR7      ;_uu_ 4        \        \        P                  P                  ^4      P                  R4      RR.^^.R7       RRR4       Rp\         P                  ! \        VR7      ;_uu_ 4        \        \        ^
4      \        ^
^4      3RR7       RRR4       Rp\         P                  ! \        VR7      ;_uu_ 4        \        RRRR/4       RRR4       R#   + '       g   i     EL=; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELh; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL.; i  + '       g   i     L; i  + '       g   i     R# ; i) z)Empty data passed with indices specified.r`   rU   Nr~  r'  r   r   rs   z:Shape of passed values is \(4, 3\), indices imply \(3, 3\)
2000-01-01r|  r  z:Shape of passed values is \(1, 3\), indices imply \(1, 4\)rV   r   r   z:Shape of passed values is \(3, 1\), indices imply \(1, 4\)Must pass 2-d input:Shape of passed values is \(2, 3\), indices imply \(1, 3\):Shape of passed values is \(2, 3\), indices imply \(2, 2\)z,2 columns passed, passed data had 10 columnsr   r  FTr   )r   r  )r   r,  bazr   r      r  r  r  r'  rs   r+  r  )r   twos)rg   rh   r   r   r2   r(  r3   r4   r$   re   r   rX  r1  r2  )r8   ri   r9   s   &  r<   test_constructor_error_msgs5TestDataFrameConstructors.test_constructor_error_msgs  s   9]]:S11bhhqk!- 2 M]]:S11sS#sC0#GH 2 L]]:S11		"%%f-- q9 2 hh	{#K]]:S11QCq< 2 hhy!K]]:S11QCq< 2 ]]:-BCCbhhy)?1#N D L]]:S11		%%a(//7'c 2 L]]:S11		%%a(//7c
!f 2 =]]:S11uRy%B-0:JK 2 C]]:S11sE3-. 21m 211
 211
 211 211
 211 DCC
 211 211 21 211sw   #M>8N<?N&N:!O&&O":>O6&?P
#P$P1>N	N#	&N7	:O	O	"O3	6P	
P	P.	1Q	c                   R V! R \        ^
4       4       4      RV! R \        ^
4       4       4      /p\        V4      p\        VP                  4        UUu/ uF  w  rEV\        VP                  4       4      bK!  	  upp4      p\        P
                  ! Wc4       V! VP                  4       4      p\        V4      p\        P
                  ! Wc4       R# u uppi )r   c              3   6   "   T F  qR V,          3x  K  	  R# 5i)g      $@Nr   r   r   s   & r<   r   KTestDataFrameConstructors.test_constructor_subclass_dict.<locals>.<genexpr>       !CAdQh-   r   c              3   6   "   T F  qR V,          3x  K  	  R# 5i)g      4@Nr   r  s   & r<   r   r    r  r  N)r   r   itemsr7  r6   r7   )r8   dict_subclassr   r:   colvalrefdfs   &&     r<   test_constructor_subclass_dict8TestDataFrameConstructors.test_constructor_subclass_dict  s     M!Cr!CCM!Cr!CC
 t_$**,O,hc3SYY[ 11,OP
e(TZZ\*t_
e( Ps   %C
c                ~   / p\         P                  VP                  R VP                  ^
,          1R3&   VP	                  4        F7  w  r4\        \        4      pVP                  VP                  4       4       WRV&   K9  	  \        V4      pVP                  VP                  R7      p\        P                  ! W4       R # )Nrs   rU   )r2   rf   r#  rV   r  r   r7  r6  r   r   rO  r6   r7   )r8   rP  r   kvdctr  r;   s   &&      r<   test_constructor_defaultdict6TestDataFrameConstructors.test_constructor_defaultdict  s    8:/+++B//45%%'DAd#CJJqyy{#G ( $=={'8'8=9
k4r?   c           
         \         P                  ! . R
O.4      p\        RR .RR.RR.RR./. ROR7      p\        P                  ! VP
                  V4       R	# )      @r   r   r   r   r   r   r   r   N)r  r   r   r   )r   r   r   r   )r2   re   r   r6   assert_numpy_array_equalr   )r8   r;   r:   s   &  r<   test_constructor_dict_block5TestDataFrameConstructors.test_constructor_dict_block  sS    881233%seS3%se<(
 	##BIIx8r?   c           	        R R^R^/RRRRRRR//p\        V\        R7      p\        V4      ^8X  g   Q hVR,          P                  \        P
                  8X  g   Q hVR ,          P                  \        P
                  8X  g   Q h\        V4      p\        V4      ^8X  g   Q hV'       g)   VR,          P                  \        P                  8X  g   Q h VR ,          P                  \        P
                  8X  g   Q hR# )r'  r  r   rs   3r/   N)r   r   rK   r0   r2   r   r   )r8   r   	test_datar  s   &&  r<   test_constructor_dict_cast4TestDataFrameConstructors.test_constructor_dict_cast  s    33*C#sCc31OP	)515zQSz2::---Sz2::---)$5zQ5GuSz2::-RRUSz2::---r?   c                   R \        \        \        ^4      \        ^4       Uu. uF  pRV 2NK
  	  up4      4      R\        \        \        ^4      \        P                  P                  ^4      P                  ^4      4      4      /p\        P                  ! \        RR7      ;_uu_ 4        \        V\        R7       RRR4       R# u upi   + '       g   i     R# ; i)r'  word_rs   zcould not convert stringr`   r/   N)r7  r5  r   r2   r1  r2  standard_normalrg   rh   r   r   r   )r8   re  r  s   &  r<   test_constructor_dict_cast25TestDataFrameConstructors.test_constructor_dict_cast2  s     c%)59%E9aaSk9%EFGc%)RYY%:%:1%=%M%Mb%QRS
	 ]]:-GHHiu- IH &F IHHs   C+CC	c                    R RRR\         P                  //p\        V4      p\        VR ,          R,          \        4      '       g   Q hR# )Col1Row1zA StringRow2N)r2   rf   r   r   r   )r8   r   r:   s   &  r<   !test_constructor_dict_dont_upcast;TestDataFrameConstructors.test_constructor_dict_dont_upcast  s>    fj&"&&9:q\"V*V,e4444r?   c                    \        ^^.RR..^^.^^.R7      p\        V^,          ^,          \        4      '       g   Q hR# )rI   r   r   r   N)r   r   r-  )r8   dms   & r<   "test_constructor_dict_dont_upcast2<TestDataFrameConstructors.test_constructor_dict_dont_upcast2  s@    Ac
+Aq6Aq6J"Q%(C((((r?   c           
         R RRR/p\        V4      p\        VP                  4        UUu/ uF  w  r4V\        V4      bK  	  upp4      p\        P                  ! W%RR7       R# u uppi )r   r   Fcheck_dtypeNrI   r   r  r  )r   r  rL  r6   r7   )r8   r   r{   r  r  r;   s   &     r<   test_constructor_dict_of_tuples9TestDataFrameConstructors.test_constructor_dict_of_tuples"  sX    YY/4TZZ\B\TQaaj\BC
fEB Cs   A#
c                    R \        ^4      R\        ^^4      /p\        V4      p\        R . ROR. RO/4      p\        P                  ! W#4       R# )r   r   Nr  )r  r   r   )r   r   r6   r7   r8   r   r{   r;   s   &   r<   test_constructor_dict_of_ranges9TestDataFrameConstructors.test_constructor_dict_of_ranges*  sD    U1XsE!QK04c9c9=>
f/r?   c                    R \        \        ^4      4      R\        \        ^4      4      /p\        V4      p\        R . ROR. RO/4      p\        P
                  ! W#4       R# )r   r   Nr  r   rI   r   )iterr   reversedr   r6   r7   r  s   &   r<   "test_constructor_dict_of_iterators<TestDataFrameConstructors.test_constructor_dict_of_iterators2  sK    T%(^S(58*<=4c9c9=>
f/r?   c           	         R R \        ^4       4       RR \        \        ^4      4       4       /p\        V4      p\        R . ROR. RO/4      p\        P                  ! W#4       R# )r   c              3   $   "   T F  qx  K  	  R # 5ir   r   r   re  s   & r<   r   PTestDataFrameConstructors.test_constructor_dict_of_generators.<locals>.<genexpr><  s     ,(Aa(r   r   c              3   $   "   T F  qx  K  	  R # 5ir   r   r"  s   & r<   r   r#  <  s     3R?Q!A?Qr   Nr  r  )r   r  r   r6   r7   r  s   &   r<   #test_constructor_dict_of_generators=TestDataFrameConstructors.test_constructor_dict_of_generators:  sS    ,%(,c3Rxa?Q3RS4c9c9=>
f/r?   c                   R	R
^ R^R^/RR
^R^R^/RR
^R^R^	//p\        VP                  4       4      p\        V4      p\        V Uu. uF  qD^,          NK  	  up\        P                  ! V Uu. uF  qD^ ,          NK  	  up4      R7      P
                  p\        P                  ! VP                  4      Vn        \        P                  ! VV4       RRR
^oR^oR^o/VR&   VP                  ^ RVR,          34       \        V Uu. uF  qD^,          NK  	  up\        V Uu. uF  qD^ ,          NK  	  upRR7      R7      P
                  p\        VP                  RR7      Vn        \        V4      pVP                  VP                  VP                  R7      p\        P                  ! W54       R# u upi u upi u upi u upi )r   rU   r   g     ^@zF)tupleize_colsr  N)r   r   )re  re  )re  j)r*  re  )r   r   )r   r   )sortedr  r   r   r  TrV   r6   r7   insertr   rO  r   )r8   r   _dr:   r   r;   s   &     r<    test_constructor_dict_multiindex:TestDataFrameConstructors.test_constructor_dict_multiindexA  s   Q
Az1EQ
Az1EQ
Az1E

 AGGIq\2aqTT2j&<&<B=OBqddB=O&P

! 	 $//?
	

 uj#z3
CP#
		!c1S6]#2aqTT2e2,>2aqTT2,>e&T

! 	 x~~UCq\ZZ 0 0ZG
b+! =O ,>s   F./F3F8F=c           	     Z  a
 . ROo
V
3R lpV! \         P                  4      pV! R 4      pV! \        4      p\        . RO. R	O. R
O. RO.S
 Uu. uF  p\        V4      NK  	  upR7      p\        V4      pVP                  P
                  R8X  g   Q hVP                  P                  R4      Vn        \        V4      pVP                  P
                  R8X  g   Q h\        V4      p	\        P                  ! Wv4       \        P                  ! W4       \        P                  ! W4       R# u upi )
1984-02-19c                 l   < \        S4       UUu/ uF  w  rW! V4      ^V,          /bK  	  upp# u uppi )r   )	enumerate)r   re  sdates_as_strs   &  r<   create_dataUTestDataFrameConstructors.test_constructor_dict_datetime64_index.<locals>.create_data`  s6    ;D\;RS;R41AAA..;RSSSs   0c                 0    \         P                  ! V R 4      # )z%Y-%m-%d)r   strptimer   s   &r<   r   RTestDataFrameConstructors.test_constructor_dict_datetime64_index.<locals>.<lambda>d  s    h.?.?:.Nr?   NrU   r5  us)r2  z
1988-11-06z
1989-12-03z
1990-03-15)r   NNN)Nr   NN)NNr   N)NNNr  )	r2   r   r"   r   rV   unitr[   r6   r7   )r8   r7  data_datetime64data_datetimedata_TimestamprT   r;   result_datetime64result_datetimeresult_Timestampr6  s   &         @r<   &test_constructor_dict_datetime64_index@TestDataFrameConstructors.test_constructor_dict_datetime64_index\  s   O	T &bmm4#$NO$Y/%%%%	 ,88<R9R=<8
 &o6 &&++s222"3"9"9"A"A$"G#M2$$))T111$^4
/:
o8
.9 9s   D(
zklass,exp_dtypec                0    \         P                  ! V R 4      # r  )r2   timedelta64r;  s   &r<   r   r   ~  s    r~~a-r?   m8[s]c                    \        V R 7      # ))days)r   r;  s   &r<   r   r     s	    ya(r?   m8[us]c                    \        V R 4      # rH  )r!   r;  s   &r<   r   r     s    yC(r?   c                8    \        V R 4      P                  R4      # )r  ms)r!   r[   r;  s   &r<   r   r     s    yC(006r?   zm8[ms]c                   . ROp\        V4       UUu/ uF  w  rEWA! V4      ^V,          /bK  	  ppp\        ^ ^ ^R^R^R/^ R^^^R^R/^ R^R^^^R/^ R^R^R^^/.V Uu. uF  p\        VR4      NK  	  upR7      pVP                  P	                  V4      Vn        \        V4      p	\
        P                  ! W4       R# u uppi u upi )rI   Nr  rU   rI   r   r  r   )r4  r   r!   rV   r5   r6   r7   )
r8   klass	exp_dtype	td_as_intre  r5  r   tdr;   r{   s
   &&&       r<   'test_constructor_dict_timedelta64_indexATestDataFrameConstructors.test_constructor_dict_timedelta64_index{  s     !	1:91EF1EE!Ha!e$$1EFAq$4D1D!Q4D1D!T1aD1D!T1dAq1	 1::	"9R%	:
 "..y94
f/ G ;s   C  C
c                N   \         P                  ! . RORR7      p\         P                  ! . RORR7      p\        RVRV/4      pVR,          P                  VP                  8X  g   Q hVR,          P                  VP                  8X  g   Q h\        RVP	                  \
        4      P                  4       RVP	                  \
        4      P                  4       /4      pVR,          P                  VP                  8X  g   Q hVR,          P                  VP                  8X  g   Q hR# )	2012-01r   freqr  r   r   N)rZ  r   z2012-04)z
2012-02-01z
2012-03-01r   )pdPeriodIndexr   r0   r5   ru   rw   rA  s   &   r<   test_constructor_period_dict6TestDataFrameConstructors.test_constructor_period_dict  s    NN8sCNN>SIQQ'(#w}}'''#w}}''' QXXf-446QXXf=M=T=T=VWX#w}}'''#w}}'''r?   c                    Vw  r#\        R V/^ .R7      pVR ,          P                  V8X  g   Q h\        ^ .R .VR7      p\        P                  ! WE4       R# )r   rU   r  N)r   r0   r6   r7   )r8   ea_scalar_and_dtype	ea_scalarea_dtyper:   r;   s   &&    r<   &test_constructor_dict_extension_scalar@TestDataFrameConstructors.test_constructor_dict_extension_scalar  sS    1	Y's3#w}}(((A3IF
b+r?   z
data,dtypez2020-01)leftrightr  rh  z
2011-01-01
US/EasternrE   r5  )r>  rE   c                *   \        \        ^4      RR.VR7      pVR,          P                  V8X  g   Q hVR,          P                  V8X  g   Q h\        P                  ! V.^,          VR7      p\        RVRV/4      p\
        P                  ! W54       R# )r   r   r   r  r/   N)r   r   r0   r]  re   r6   r7   )r8   r   r0   r:   r9   r;   s   &&&   r<   &test_constructor_extension_scalar_data@TestDataFrameConstructors.test_constructor_extension_scalar_data  s}     U1XSzE#w}}%%%#w}}%%%hhvz/c3S12
b+r?   c                t   \         P                  ! R ^R7      p\        \        P                  P                  ^4      P                  R4      VR7      p/ pVP                   F:  pVP                   F'  pVP                  WT4      VP                  V/ 4      V&   K)  	  K<  	  \        W1R7      p\        P                  ! Wb4       / pVP                   F:  pVP                   F'  pVP                  WT4      VP                  V/ 4      V&   K)  	  K<  	  \        W1R7      P                  p\        P                  ! Wb4       R# )z1/1/2000r|  r   rU   Nr  r   )r]  period_ranger   r2   r1  r2  r  r   rV   r  
setdefaultr6   r7   r,  )r8   rR  r:   r   r  rowr{   s   &      r<   "test_nested_dict_frame_constructor<TestDataFrameConstructors.test_nested_dict_frame_constructor  s    ooj!4ryy,,Q/??HRUV::Cxx02c0GR(-    4-
f)::Cxx02c0GR(-    4+--
f)r?   c           	        V! R\         R7      p\        V. RO^^.R7      p\        VP                  4      ^8X  g   Q h\        VP                  4      ^8X  g   Q h\        V! R4      R.. ROR7      p\        VP                  4      ^8X  g   Q h\        VP                  4      ^8X  g   Q hV\
        P                  JdS   Rp\        P                  ! \        VR7      ;_uu_ 4        \        V. RO^^.\
        P                  R7       RRR4       R# \        V. RO^^.\
        P                  R7      pVP                  P                  \
        P                  8X  g   Q hR	p\        P                  ! \        VR7      ;_uu_ 4        \        V. RO^.R7       RRR4       R
p\        P                  ! \        VR7      ;_uu_ 4        \        VRR.^^.R7       RRR4       \        P                  ! \        RR7      ;_uu_ 4        \        V! R4      . RO^.R7       RRR4       \        V4      p\        P                  ! VP                  \!        \#        ^4      4      RR7       \        P                  ! VP                  \!        \#        ^4      4      RR7       \        V^^.R7      p\        P                  ! VP                  \!        \#        ^4      4      RR7       \        V. ROR7      p\        P                  ! VP                  \!        \#        ^4      4      RR7       \        V! R4      4      p\        VP                  4      ^ 8X  g   Q h\        V! R4      4      p\        VP                  4      ^ 8X  g   Q hR#   + '       g   i     R# ; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i)r   r/   r'  rs   r  r_   r`   r   rV   r0   Nr  r  r  Tr  rU   r   r  r  )r  r  r  )r   r  )r  r   )r   r   rK   rV   r   r2   r   rg   rh   r   r  r   r0   r   r6   rN  r   r   )r8   r(  matr  ri   s   &&   r<   _check_basic_constructor2TestDataFrameConstructors._check_basic_constructor  s    F%(#q!fE5;;1$$$5==!Q&&& %+uIF5;;1$$$5==!Q&&&NC1==#q!fBHHU >_QF"((E <<%%111 L]]:S11c?1#> 2K]]:S11cC:aV< 2 ]]:-BCCeI&sK D #
ekk5q?$G
emmU58_DI#aV,
emmU58_DI#7
ekk5q?$G %-(5;;1$$$%-(5==!Q&&&K >= 211 211 DCCs0   ""M8 N N ?N48N		N	 N1	4O	c                    V P                  \        P                  4       \        R R.^ ^.R.R7      p\	        V4      ^8X  g   Q hR# )r   r,  r'  r   N)rx  r2   r   r   rK   r  s   & r<   test_constructor_ndarray2TestDataFrameConstructors.test_constructor_ndarray  s<    %%bgg.5%.AF5zQr?   c                   V P                  \        P                  4       \        P                  ! R\        R7      pRVR	&   RVR
&   \	        V. RO^^.R7      pRVR,          ^,          8X  g   Q hRVR,          ^,          8X  g   Q h\        P                  ! R\        R7      p\	        V. RO^^.R7      p\
        P                  ! \
        P                  ! W"8H  4      ( 4      '       g   Q hR# )r   r/   r   r   r'  r+  r  Nr  r  rI   r   r  )rx  r   
masked_allr   r   r2   r  asarray)r8   rw  r  s   &  r<   test_constructor_maskedarray6TestDataFrameConstructors.test_constructor_maskedarray  s    %%bmm4 mmF%0D	D	#q!fEeCjm###eCjm### mmF%0#q!fEvvrzz%.112222r?   z7ignore:elementwise comparison failed:DeprecationWarningc           	        \         P                  ! R\        R7      p\        V. RO^^.R7      p\	        VP
                  4      ^8X  g   Q h\	        VP                  4      ^8X  g   Q h\        P                  ! \        P                  ! W"8H  4      ( 4      '       g   Q h\        V. RO^^.\        P                  R7      pVP                  P                  \        P                  8X  g   Q h\         P                  ! V4      p^VR&   ^VR&   \        V. RO^^.R7      p^VR,          ^,          8X  g   Q h^VR,          ^,          8X  g   Q h\         P                  ! RRR7      p\        V. RO^^.R7      p\	        VP
                  4      ^8X  g   Q h\	        VP                  4      ^8X  g   Q h\        V4      P                  P                  4       '       g   Q hRp\        P                   ! \"        VR7      ;_uu_ 4        \        V. RO^^.\        P$                  R7       R	R	R	4       \         P                  ! V4      p^VR&   ^VR&   \        V. RO^^.R7      p^VR,          P'                  R
4      ^,          8X  g   Q h^VR,          P'                  R
4      ^,          8X  g   Q h\         P                  ! R\(        R7      p\        V. RO^^.R7      p\	        VP
                  4      ^8X  g   Q h\	        VP                  4      ^8X  g   Q h\        P                  ! \        P                  ! W"8H  4      ( 4      '       g   Q h\        V. RO^^.\*        R7      pVP                  P                  \*        8X  g   Q h\         P                  ! V4      pRVR&   RVR&   \        V. RO^^.R7      pVR,          ^,          RJ g   Q hVR,          ^,          RJ g   Q hR	#   + '       g   i     EL; i)r   r/   r'  r+  r  rv  r   z8datetime64\[ns\] values and dtype=int64 is not supportedr`   Nrb   TFr  r  r  r~  )r   r  r-  r   rK   rV   r   r2   r  r  r   r   r0   r   r%   rg   rh   r   r  r5   rW  ru   )r8   rw  r  mat2ri   s   &    r<   %test_constructor_maskedarray_nonfloat?TestDataFrameConstructors.test_constructor_maskedarray_nonfloat(  s6   
 mmF#.#q!fE5;;1$$$5==!Q&&&vvrzz%.112222 #q!fBJJW||!!RZZ/// wws|T
T
$1vFE#JqM!!!E#JqM!!! mmF(3#q!fE5;;1$$$5==!Q&&&E{!!%%'''' J]]9C00c?1a&Q 1 wws|T
T
$1vFE#J%%d+A....E#J%%d+A.... mmF$/#q!fE5;;1$$$5==!Q&&&vvrzz%.112222 #q!fFS||!!V+++ wws|T
T
$1vFSz!}$$$Sz!}%%%= 100s   ;"OO'	c                :   \         P                  ! R\        R7      P                  4       p\	        VRR.^^.R7      p\	        R\
        P                  \
        P                  .R\
        P                  \
        P                  ./RR.^^.\        R7      p\        P                  ! W#4       \         P                  ! R\        R7      P                  4       p\	        VRR.^^.R7      p\	        RRR.RRR./RR.^^.\        R7      p\        P                  ! W#4       R# )	r   r/   r'  rs   r  rv  r   N)r   r   )
r   r  r   harden_maskr   r2   rf   r6   r7   r   )r8   mat_hardr{   r;   s   &   r<   %test_constructor_maskedarray_hardened?TestDataFrameConstructors.test_constructor_maskedarray_hardenedl  s    ==u5AAC8c3Z1vF266266"C"&&"&&)9:#Ja&	
 	f/776/;;=8c3Z1vF3*cC:.#Ja&	
 	f/r?   c                |   \         P                  P                  \         P                  P                  ^RR.R7      R.^,          R7      pVP	                  \
        P                  4      p\        P                  ! \        RR7      ;_uu_ 4        \        V\        R7       RRR4       R#   + '       g   i     R# ; i)	r   r/   F)maskzPass \{name: data\[name\]r`   N)r
   <f8)pricer  )r2   r   re   rX  r   r   	mrecarrayrg   rh   r   r   r-  r8   r   s   & r<   %test_constructor_maskedrecarray_dtype?TestDataFrameConstructors.test_constructor_maskedrecarray_dtype  s~    uu{{EEKK/3C!DKEUGVWK  
 yy++,]]9,HIId#& JIIIs   B**B;	c                X    \        . R 7      pVP                  P                  R8X  g   Q hR# )rU   Nr  )r   r   shapero   s   & r<   test_constructor_corner_shape7TestDataFrameConstructors.test_constructor_corner_shape  s"    R yy&(((r?   z%data, index, columns, dtype, expectedr   r   r   r   c                X    \        WW44      pVP                  P                  V8X  g   Q hR # r   )r   r   r0   )r8   r   rV   r   r0   r;   r:   s   &&&&&& r<   test_constructor_dtype0TestDataFrameConstructors.test_constructor_dtype  s&     tG3yy(***r?   zdata,input_dtype,expected_dtypeTFbooleanFloat64Int64stringc                b    \        R V/VR7      pVR ,          P                  V! 4       8X  g   Q hR# )r   r/   Nro  )r8   r   input_dtypeexpected_dtyper:   s   &&&& r<   0test_constructor_dtype_nullable_extension_arraysJTestDataFrameConstructors.test_constructor_dtype_nullable_extension_arrays  s-     T{+6#w}} 0000r?   c           
        R ^RRRRRRRR/p\        V\        P                  ! ^
4      R	7      pVR ,          P                  \        P                  8X  g   Q hVR,          P                  \        P
                  8X  g   Q hVR,          P                  \        P                  8X  g   Q hVR,          P                  \        P                  8X  g   Q hV'       g)   VR,          P                  \        P                  8X  g   Q hR
# R
# )r-  rW  Tr   r   complexy              @ru   r   rU   N)	r   r2   r3   r0   r  rY  r   r@  r   )r8   r   r   r:   s   &&  r<   !test_constructor_scalar_inference;TestDataFrameConstructors.test_constructor_scalar_inference  s    q&$iXuUt299R=1%y"((***&z288+++'{  BJJ...)}""bmm3337Ir(|!!RZZ/TTu/r?   c                   \        R \        P                  P                  ^4      P	                  ^
4      RR/4      p\        R VR ,          P
                  RR.^
,          /4      p\        P                  ! W4       \        P                  ! \        RR7      ;_uu_ 4        \        R RRR/4       RRR4       R#   + '       g   i     R# ; i)r   r   Tzmust pass an indexr`   FN)r   r2   r1  r2  r  r   r6   r7   rg   rh   r   )r8   r:   r  s   &  r<   #test_constructor_arrays_and_scalars=TestDataFrameConstructors.test_constructor_arrays_and_scalars  s    RYY2215EEbI3PTUVbgnncD6B;?@
b&]]:-ABBsE3-. CBBBs   B88C		c                    \        V4      p\        P                  ! W!4       \        V\        P                  R 7      pVP
                  P                  \        P                  8X  g   Q hR# r/   N)r   r6   r7   r2   r  r   r0   )r8   rP  r:   	df_casteds   &&  r<   test_constructor_DataFrame4TestDataFrameConstructors.test_constructor_DataFrame  sH    {#
b.k:	%%111r?   c                v    \        \        4       R R7      p\        . R R7      p\        P                  ! W4       R# )ru   r/   Nr   )r8   actualr;   s   &  r<    test_constructor_empty_dataframe:TestDataFrameConstructors.test_constructor_empty_dataframe  s*    9;h7Rx0
f/r?   c           
        \         P                  P                  ^4      P                  ^
4      p\	        VR.\         P
                  ! ^
4      R7      pVP                  P                  ^8X  g   Q h\         P                  P                  ^4      P                  ^ 4      p\	        V4      pVP                  P                  ^8X  g   Q hVP                  P                  ^8X  g   Q h\	        RR.\         P
                  ! ^
4      R7      pVP                  P                  R8X  g   Q h\	        RR.R7      pVP                  P                  R8X  g   Q h\	        \         P
                  ! ^
4      R7      pVP                  P                  R8X  g   Q h\         P                  ! RR.\        R7      P                  ^^4      pR	p\        P                  ! \        VR
7      ;_uu_ 4        \	        V^ ^.^ .\        R7       RRR4       \	        \	        VP                   4      4      p\"        P$                  ! W14       \	        R\         P&                  ! ^
\(        R7      R\         P&                  ! ^
\         P*                  R7      /\         P
                  ! ^
4      R7      p\-        VP.                  4      ^8X  g   Q hVP                  P0                  \         P*                  8X  g   Q hR#   + '       g   i     L; i)r   r'  r  rs   r   rU   r   r,  r/   z(could not convert string to float: 'foo'r`   rV   r   r0   Nr  r   )r   r   )r  r   )r2   r1  r2  r  r   r3   r   ndimr  re   ru   r4   rg   rh   r   r   r  r6   r7   r   r-  r   rK   r   r0   )r8   rP  r9   r  rw  ri   s   &&    r<   test_constructor_more/TestDataFrameConstructors.test_constructor_more  s   ii##A&66r:sSE2?yy~~"""ii##A&66q9s^yy~~"""yy~~""" Sz2?yy')))Sz*yy&(((RYYr]+yy'))) hhu~V4<<QB8]]:S11c!Q!EB 2 y!4!456
b. "''"C(#rwwr/LM))B-

 2::!###yy"**,,, 21s   KK-	c                &   \        . . R 7      p\        . R 7      p\        P                  ! W4       \        . RR.R7      p\        / RR.R7      p\        P                  ! W4       R p\        V! 4       RR.R7      p\        P                  ! W4       R# )rU   r'  rs   r   c               3   &   "   R R j  xL
  R #  L5ir   r   r   r?   r<   	empty_genHTestDataFrameConstructors.test_constructor_empty_list.<locals>.empty_gen  s     MMs   Nr   )r8   r:   r;   r  s   &   r<   test_constructor_empty_list5TestDataFrameConstructors.test_constructor_empty_list  s}    r$2&
b+ rC:.R#s4
b+	 y{S#J7
b+r?   c                   \        ^R.^R..RR.R7      p\        VR,          4      '       g   Q hV'       g)   VR,          P                  \        P                  8X  g   Q h \        \        P
                  ! ^
4      4      p\        ^
4       Uu. uF  p\        P                  ! V4      NK  	  pp\        V4      p\        P                  ! Wc4       R# u upi )rI   r   r   numr1   r  N)
r   r   r0   r2   r   r3   r   re   r6   r7   )r8   r   r:   r;   r   r   r{   s   &&     r<   test_constructor_list_of_lists8TestDataFrameConstructors.test_constructor_list_of_lists  s    aX3x05%.I5	****4Fr%y"**,QQE RYYr]+%*2Y/YY/4
f/ 0s   Cc                r   \        ^^.4      p\        P                  ! RR.\        R7      pW^ &   V^,          V^&   \	        V4      p\	        \
        P                  ! V4      4      p\        P                  ! W44       VP                  R8X  g   Q h\        P                  ! V^ ,          P                  V4       R# )rI   Nr/   )r   rI   )r    r2   re   ru   r   r]  r6   r7   r  r  r   )r8   serr9   r:   r;   s   &    r<   .test_nested_pandasarray_matches_nested_ndarrayHTestDataFrameConstructors.test_nested_pandasarray_matches_nested_ndarray  s    aVnhhd|62AqAs^RXXc]+
b+xx6!!!
##BqELL#6r?   c                    \        R 4      \        R4      .p\        . RO. RO.VR7      p\        P                  ! V4      p\        . RO. RO.VR7      p\        P
                  ! W$4       R# )abcdcdefr   NrR  r   r   r     )rL  r   r   from_arraysr6   r7   )r8   r;  r{   r  r;   s   &    r<   2test_constructor_list_like_data_nested_list_columnLTestDataFrameConstructors.test_constructor_list_like_data_nested_list_column  sT    v,V-L,7H##F+lL92F
f/r?   c                    \        R 4      \        R4      .pRp\        P                  ! \        VR7      ;_uu_ 4        \	        . RO. RO.VR7       RRR4       R#   + '       g   i     R# ; i)r   cdez#3 columns passed, passed data had 4r`   r   NrR  r  rL  rg   rh   r   r   r8   r;  ri   s   &  r<   0test_constructor_wrong_length_nested_list_columnJTestDataFrameConstructors.test_constructor_wrong_length_nested_list_column)  sH    u+tE{+3]]:S11|\2FC 2111   AA,	c                    \        R 4      \        R4      .pRp\        P                  ! \        VR7      ;_uu_ 4        \	        . RO. RO.VR7       RRR4       R#   + '       g   i     R# ; i)r  r  zall arrays must be same lengthr`   r   NrR  r  r  r  s   &  r<   2test_constructor_unequal_length_nested_list_columnLTestDataFrameConstructors.test_constructor_unequal_length_nested_list_column1  sJ    v,U, /]]:S11|\2FC 2111r  r   
2021-01-01r   c                    \        V\        ^4      R.R7      p\        R\        R4      .^,          /4      p\        P                  ! W#4       R# )r  r   r   r  N)r   r   r"   r6   r7   r  s   &&  r<   &test_constructor_one_element_data_list@TestDataFrameConstructors.test_constructor_one_element_data_list:  sB     4uQx#?cIl$;#<q#@AB
f/r?   c                     ! R  R\         P                  4      pV! ^R.4      V! ^R.4      .pRR.p\        W#R7      p\        ^R.^R..VR7      p\        P                  ! WERR7       R	# )
c                   J   a  ] tR tRt o V 3R lR ltR tV 3R lR ltRtV tR# )	PTestDataFrameConstructors.test_constructor_sequence_like.<locals>.DummyContaineriM  c                   < V ^8  d   QhRR/# )r   returnNr   )format__classdict__s   "r<   __annotate__]TestDataFrameConstructors.test_constructor_sequence_like.<locals>.DummyContainer.__annotate__N  s        t  r?   c                    Wn         R # r   _lst)r8   lsts   &&r<   __init__YTestDataFrameConstructors.test_constructor_sequence_like.<locals>.DummyContainer.__init__N  s    	r?   c                8    V P                   P                  V4      # r   )r  __getitem__)r8   ns   &&r<   r  \TestDataFrameConstructors.test_constructor_sequence_like.<locals>.DummyContainer.__getitem__Q  s    yy,,Q//r?   c                    < V ^8  d   QhRS[ /# r   r  )r-  )r  r  s   "r<   r  r  T  s     + + +r?   c                6    V P                   P                  4       # r   )r  __len__)r8   s   &r<   r  XTestDataFrameConstructors.test_constructor_sequence_like.<locals>.DummyContainer.__len__T  s    yy((**r?   r  N)	__name__
__module____qualname____firstlineno__r  r  r  __static_attributes____classdictcell__r  s   @r<   DummyContainerr  M  s        0+ +r?   r  r   r   r  r1   r   Fr  N)r   Sequencer   r6   r7   )r8   r  lst_containersr   r{   r;   s   &     r<   test_constructor_sequence_like8TestDataFrameConstructors.test_constructor_sequence_likeI  sl    	+S\\ 	+ )!S2NAs84LM%.>;q#hC17C
fEBr?   c           	        \        R \        P                  ! R\        ^
4      4      /4      p\        R \        \        ^
4      4      /4      p\        P
                  ! WRR7       \        \        \        ^
4      4      \        \        ^
4      4      .4      p\        \        P                  ! R\        ^
4      4      \        P                  ! R\        ^
4      4      .4      p\        P
                  ! WRR7       R# )r'  re  Fr  N)r   re   r   rL  r6   r7   r  s   &  r<   test_constructor_stdlib_array7TestDataFrameConstructors.test_constructor_stdlib_array]  s     CS%)!<=>c4b	?34
fEBd59otE"I?@EKKU2Y7S%PR)9TUV
fEBr?   c                    \        \        ^
4      4      p\        \        \        ^
4      4      4      p\        P                  ! W4       R# r  Nr   r   rL  r6   r7   r  s   &  r<   test_constructor_range0TestDataFrameConstructors.test_constructor_rangeh  s0    59%T%)_-
f/r?   c                    \        \        ^
4      \        ^
4      .4      p\        \        \        ^
4      4      \        \        ^
4      4      .4      p\        P                  ! W4       R# r  r  r  s   &  r<   test_constructor_list_of_ranges9TestDataFrameConstructors.test_constructor_list_of_rangesn  sF    E"IuRy12d59otE"I?@
f/r?   c                     ! R  R4      p\        . RO.^
,          4      p\        V! 4       4      p\        P                  ! W24       R# )c                   2   a  ] tR tRt o V 3R lR ltRtV tR# )ATestDataFrameConstructors.test_constructor_iterable.<locals>.Iteriu  c                    < V ^8  d   QhRS[ /# r  r   )r  r  s   "r<   r  NTestDataFrameConstructors.test_constructor_iterable.<locals>.Iter.__annotate__v  s     $ $( $r?   c              3  >   "   \        ^
4       F	  p. ROx  K  	  R# 5i)r  Nr  )r   )r8   re  s   & r<   __iter__JTestDataFrameConstructors.test_constructor_iterable.<locals>.Iter.__iter__v  s     rA#O #s   r   N)r  r  r  r  r  r  r  r  s   @r<   Iterr  u  s     $ $r?   r  Nr  r   )r8   r  r;   r{   s   &   r<   test_constructor_iterable3TestDataFrameConstructors.test_constructor_iterables  s9    	$ 	$
 i[2-.46"
f/r?   c                    \        \        \        ^
4      4      4      p\        \        \        ^
4      4      4      p\        P
                  ! W4       R# r  r   r  r   rL  r6   r7   r  s   &  r<   test_constructor_iterator3TestDataFrameConstructors.test_constructor_iterator~  s4    4b	?+T%)_-
f/r?   c                    \        \        \        ^
4      4      \        \        ^
4      4      .4      p\        \        \        ^
4      4      \        \        ^
4      4      .4      p\        P
                  ! W4       R# r  r  r  s   &  r<   "test_constructor_list_of_iterators<TestDataFrameConstructors.test_constructor_list_of_iterators  sN    DrOT%)_=>d59otE"I?@
f/r?   c                   R  \        ^
4       4       pR \        ^
4       4       p\        \        \        ^
4      4      \        \        ^
4      4      .4      p\        W.4      p\        P                  ! WC4       R \        ^
4       4       p\        V4      p\        ^ \        ^
4      ^R/4      p\        P                  ! WCRR7       R# )c              3   $   "   T F  qx  K  	  R # 5ir   r   r"  s   & r<   r   GTestDataFrameConstructors.test_constructor_generator.<locals>.<genexpr>       %9a9r   c              3   $   "   T F  qx  K  	  R # 5ir   r   r"  s   & r<   r   r!    r"  r   c              3   (   "   T F  qR .x  K
  	  R# 5i)r   Nr   r"  s   & r<   r   r!    s     +A3xs   r   Fr  N)r   r   rL  r6   r7   )r8   gen1gen2r;   r{   gens   &     r<   test_constructor_generator4TestDataFrameConstructors.test_constructor_generator  s     &59%%59%d59otE"I?@D<(
f/+r+3arAs34
fEBr?   c                v    \        / .4      p\        \        ^4      . R7      p\        P                  ! W4       R# )rI   r   N)r   r   r6   r7   r  s   &  r<   test_constructor_list_of_dicts8TestDataFrameConstructors.test_constructor_list_of_dicts  s+    B4:a="=
f/r?   c                    \        RR.4      p\        RR	.4      p\        RV3RV3.4      p\        V4      pR^^.R^^./p\        VR R.R7      p\        P                  ! WE4       R# )
r   r   r   r   )r   rV   N)r   rI   )r   r   )r   r   )r   r   )r   r   r6   r7   )r8   nested1nested2r   r{   r;   s   &     r<   3test_constructor_ordered_dict_nested_preserve_orderMTestDataFrameConstructors.test_constructor_ordered_dict_nested_preserve_order  sv    x23x23VW-/@AB4AA/$sCj9
f/r?   	dict_typec                    \        ^^..RR.R7      pV! 4       p^.VR&   ^.VR&   \        V4      p\        P                  ! WB4       V! 4       p^VR&   ^VR&   \        V.4      p\        P                  ! WB4       R# r   r   r   r   Nr   )r8   r2  r;   r   r{   s   &&   r<   ,test_constructor_ordered_dict_preserve_orderFTestDataFrameConstructors.test_constructor_ordered_dict_preserve_order  s     q!fXSz:{CS	CS	4
f/{S	S	D6"
f/r?   c                :   V! 4       p^VR&   ^VR&   V! 4       p^VR&   ^VR&   R^R^/p\        ^^.^^..RR.R7      p\        W#.4      p\        P                  ! We4       \        ^^.^^.^^..RR.R7      p\        W#V.4      p\        P                  ! We4       R# r4  r   )r8   r2  row_onerow_two	row_threer;   r{   s   &&     r<   0test_constructor_ordered_dict_conflicting_ordersJTestDataFrameConstructors.test_constructor_ordered_dict_conflicting_orders  s     ++!S!$	q!fq!f-SzBG-.
f/q!fq!fq!f5SzJGi89
f/r?   c           
         \        ^4       Uu. uF  p\        V. RO\        V4      R7      NK  	  pp\        V4      p\        R. ROR. ROR. RO/. RO. R	OR7      p\        P
                  ! W44       R# u upi )
r  r   r   r   r}  r  N)r   r   r   r  )0r  r   )r   r    r1   r   r6   r7   )r8   re  seriesr{   r;   s   &    r<   -test_constructor_list_of_series_aligned_indexGTestDataFrameConstructors.test_constructor_list_of_series_aligned_index  sg    INqRA&/A?R6")S)S)<#!

 	f/ Ss   "A3c                     ! R  R\         4      pRRR^/pV! V4      .pV.p\        V4      p\        V4      p\        P                  ! We4       R# )c                       ] tR tRtRtR# )TTestDataFrameConstructors.test_constructor_list_of_derived_dicts.<locals>.CustomDicti  r   Nr  r  r  r  r  r   r?   r<   
CustomDictrD        r?   rF  r         ?r   N)r7  r   r6   r7   )r8   rF  r   data_customr   result_customr{   s   &      r<   &test_constructor_list_of_derived_dicts@TestDataFrameConstructors.test_constructor_list_of_derived_dicts  sQ    	 	 #sA!!}os!+.4
f4r?   c                Z   R \         P                  P                  ^4      P                  ^
4      R\         P                  P                  ^4      P                  ^4      /p\        P
                  ! \        RR7      ;_uu_ 4        \        V4       RRR4       R#   + '       g   i     R# ; i)r'  rs   z%All arrays must be of the same lengthr`   N)r2   r1  r2  r  rg   rh   r   r   r  s   & r<   test_constructor_ragged1TestDataFrameConstructors.test_constructor_ragged  sr    &&q)99"=&&q)99!<
 ]]:-TUUdO VUUUs   BB*	c                    \        \        ^4      4      p\        R^ /VR7      p\        R. RO/VR7      p\        P                  ! W#RR7       R# )r  r   rU   Fr  N)r   r   r   )r   r   r   r6   r7   )r8   rz   r:   r;   s   &   r<   test_constructor_scalar1TestDataFrameConstructors.test_constructor_scalar  s@    E!HoQxs+c9-S9
b>r?   c                f    \        VR ,          VP                  R .R7      pVP                  4        R# )r'  r   N)r   rV   r   )r8   rP  r:   s   && r<    test_constructor_Series_copy_bug:TestDataFrameConstructors.test_constructor_Series_copy_bug  s&    {3'{/@/@3%P
	r?   c                   / pR ^R^R^/VR&   \        . RO. ROR7      VR&   \        V4      pVP                  P                  '       g   Q h\        P
                  ! \        RR7      ;_uu_ 4        \        RRR	.RRRR	R	//4       R
R
R
4       \        RRR	.R\        RR	.RR	.R7      /4      p\        RRR	.RRR	./RR	.R7      p\        P                  ! W#4       R
#   + '       g   i     L_; i)r   r,  r  r'  rU   rs   zambiguous orderingr`   r   r   N)r   r  r   rI   )r,  quxr  r   )	r    r   rV   is_monotonic_increasingrg   rh   r   r6   r7   r  s   &   r<   &test_constructor_mixed_dict_and_Series@TestDataFrameConstructors.test_constructor_mixed_dict_and_Series  s    Aua2S	</KLS	4||33333 ]]:-ABBsS#Jc3S-ABC C C#sS&#sCQT:2VWXcC:sS#J?SzR
f/ CBs   /CC,	c                v    ^^.R.p\        V4      p\        ^^.^^..4      p\        P                  ! W#4       R# )rI   Nr  r   r   r  s   &   r<    test_constructor_mixed_type_rows:TestDataFrameConstructors.test_constructor_mixed_type_rows	  s>    A4q!fq!f-.
f/r?   ztuples,listsc                ^    \        V4      p\        V4      p\        P                  ! W44       R # r   r   )r8   r  listsr{   r;   s   &&&  r<   test_constructor_tuple0TestDataFrameConstructors.test_constructor_tuple  s&     6"U#
f/r?   c                    \        R RR./4      p\        R \        RR.4      /4      p\        P                  ! W4       R# )r'  Nr~  r\  r   r    r6   r7   r  s   &  r<   test_constructor_list_of_tuples9TestDataFrameConstructors.test_constructor_list_of_tuples"  s=    C&&!123c666*:#;<=
f/r?   c                ,   \        R \        R4      4      pV! ^^4      V! ^^4      .p\        R^^.R^^./4      p\        V4      p\        P                  ! WC4       \        R^^.R^^./4      p\        VRR.R7      p\        P                  ! WC4       R# )Pandasabr   r   r   r(  r   N)r   rL  r   r6   r7   )r8   named_tupler  r;   r{   s   &    r<   $test_constructor_list_of_namedtuples>TestDataFrameConstructors.test_constructor_list_of_namedtuples'  s     4:6a#[A%67cAq63A786"
f/ cAq63A786C:6
f/r?   c                    \        R R\        3R\        3.4      pV! ^ ^4      V! ^^4      .p\        R^ ^.R^^./4      p\        V4      p\        P                  ! WC4       R# )Pointr   r   N)r	   r-  r   r6   r7   )r8   rn  r   r;   r{   s   &    r<   $test_constructor_list_of_dataclasses>TestDataFrameConstructors.test_constructor_list_of_dataclasses4  sc    w#sc3Z(@AaU1a[)cAq63A784
f/r?   c                n   \        R R\        3R\        3.4      p\        RR\        3R\        3R\        3.4      pV! ^ ^4      V! ^^^4      .p\        R^ \        P                  .R^^.R\        P                  ^.R\        P                  ^./4      p\        V4      p\
        P                  ! WT4       R# )rn  r   r   HLinex0x1N)r	   r-  r   r2   rf   r6   r7   )r8   rn  rr  r   r;   r{   s   &     r<   7test_constructor_list_of_dataclasses_with_varying_typesQTestDataFrameConstructors.test_constructor_list_of_dataclasses_with_varying_types=  s     w#sc3Z(@Aw$tSkC:(NOaU1a^,1bff+sQFD2661+tbffa[Q
 4
f/r?   c           	        \        R R\        3R\        3.4      pRp\        P                  ! \        \
        P                  ! V4      R7      ;_uu_ 4        \        V! ^ ^ 4      R^R^ /.4       RRR4       R#   + '       g   i     R# ; i)rn  r   r   z0asdict() should be called on dataclass instancesr`   N)r	   r-  rg   rh   r   reescaper   )r8   rn  ri   s   &  r<   1test_constructor_list_of_dataclasses_error_thrownKTestDataFrameConstructors.test_constructor_list_of_dataclasses_error_thrownK  sg    w#sc3Z(@A A]]9BIIcN;;uQ{S!S!$456 <;;;s   A88B		c                    R ^R^R^R^
/R^R ^R^R^/R^R ^R^R^	R^R^/.p\        R . ROR. ROR. R	OR. R
OR. ROR. RO/4      p\        V4      p\        P                  ! W24       R# )FirstSecondThirdFourthYYYXXXNr  r  )r     	   )r  r  r.   )NN   )NN   r   )r8   r   r;   r{   s   &   r<   #test_constructor_list_of_dict_order=TestDataFrameConstructors.test_constructor_list_of_dict_orderT  s     a1gq(B?q'1hGQ?q'1hGQr5RTU

 ),''	
 4
f/r?   c                ^   \        . RO. RORR7      p\        V4      pVP                  ^ ,          R8X  g   Q h\        P                  ! VP
                  VP
                  4       \        P                  P                  ^4      P                  ^
4      p\        VRR7      p\        V4      p\        RV/4      p\        P                  ! W%4       \        V\        ^^4      R7      p\        V4      p\        ^ V/4      p\        P                  ! W%RR7       Rp\        P                  ! \        VR7      ;_uu_ 4        \        V^^.R	7       R
R
R
4       \        . R\        R7      p\        V4      pVP                  ^ ,          R8X  g   Q h\        VRR7      p\        Ws.4      P                   p\        RVRV/RR.R	7      p\        P                  ! W%4       \        W7.4      P                   p\        ^V^ V/\        ^4      R	7      p\        P                  ! W%4       R
#   + '       g   i     L; i)rI   r   r}  rt   rU   F)check_column_typez<Shape of passed values is \(10, 1\), indices imply \(10, 2\)r`   r   Nrd   r0   z	Unnamed 0r  r   )r    r   r   r6   rN  rV   r2   r1  r2  r  r7   r   rg   rh   r   ru   r,  )r8   r   r:   r9   r5  r;   ri   s1s   &       r<   test_constructor_Series_named7TestDataFrameConstructors.test_constructor_Series_namedh  s   9O#>q\zz!}###
bhh0 ii##A&66r:3S!q\c1X&
b+3eArl+q\aV$
beDM]]:S11a!Q( 2 2Cv.q\zz!}### Cc"y!##c2{C83BTU
b+ y!##aQ_eAh?
b+# 21s   9HH,	c                   \        \        ^4      ^ R7      p\        \        ^4      ^R7      p\        P                  ! \	        V^ .R7      VP                  4       4       \        P                  ! \	        V^.R7      VP                  4       4       \	        V^.R7      P                  '       g   Q h\	        V^ .R7      P                  '       g   Q hR# r   )r    r   r6   r7   r   to_framer(  )r8   s0r  s   &  r<   )test_constructor_Series_named_and_columnsCTestDataFrameConstructors.test_constructor_Series_named_and_columns  s     E!H1%E!H1% 	iQC8"++-H
iQC8"++-H aS)/////aS)/////r?   c                    \        . RO. RORR7      p\        . RO. ROR7      p\        RR.4      p\        WR7      p\        VP                  V4      4      pVP                  ^ ,          R8X  g   Q h\
        P                  ! WE4       \        W#R7      p\        VP                  V4      4      pVP                  ^ ,          ^ 8X  g   Q h\
        P                  ! VP                  V4       \
        P                  ! Wg4       R# )	rI   r   r   r   r}  rU   Nr  r   )	r    r   r   rO  r   r6   r7   rN  rV   )r8   r  s2other_indexdf1exp1r  exp2s   &       r<   +test_constructor_Series_differently_indexedETestDataFrameConstructors.test_constructor_Series_differently_indexed  s    I_3? I_5S#J'.K01{{1~$$$
c(.K01{{1~"""
cii5
c(r?   z#name_in1,name_in2,name_in3,name_outc                   \        . ROVR7      \        . ROVR7      \        . R	OVR7      .p\        V. R
O4       UUu/ uF  w  rgV\        . ROVR7      bK  	  ppp\        V4      p	\        . ROVR7      p
\        R^ ^^\        P
                  \        P
                  .R\        P
                  ^ ^^\        P
                  .R\        P
                  \        P
                  ^ ^^./V
R7      p\        P                  ! W4       R# u uppi )r   rt   r   r   r(  rU   Nr   )r   r   r   )r   r   e)r   r   r(  r  )r   r   r   r   r  )r   r5  r    r   r2   rf   r6   r7   )r8   name_in1name_in2name_in3name_outindicesre  r   r?  r{   exp_indr;   s   &&&&&       r<   test_constructor_index_names6TestDataFrameConstructors.test_constructor_index_names  s     /1/1/1
 7:'?6S
6SdaAviq))6S 	 
 6"1AaArvvrvv.bffaArvv.bffbffaA.
 
 	f/
s   Dc                   \        VP                  R ,          4      p\        VP                  R,          4      pRp\        P                  ! \
        VRR7      ;_uu_ 4        \        VP                  W#R7      pRRR4       \        P                  ! XP                  \        V4      4       \        P                  ! VP                  \        V4      4       R#   + '       g   i     Lf; i)r  :Nr  Nz#Passing a BlockManager to DataFrameF)ra   check_stacklevelr   N)
rL  rV   r   r6   assert_produces_warningDeprecationWarningr   rL   rN  r   )r8   rP  rV   r   ri   r{   s   &&    r<   test_constructor_manager_resize9TestDataFrameConstructors.test_constructor_manager_resize  s    [&&r*+{**2./3''cE
 
 {//uNF
 	fllE%L9
fnneGn=
 
s    CC&	c                   \        R VR ,          R\        VR,          4      /R R.R7      p\        P                  ! W!P                  RR R.3,          4       Rp\
        P                  ! \        VR7      ;_uu_ 4        \        R VR ,          R\        VR,          4      RR /4       RRR4       R#   + '       g   i     R# ; i)r'  rs   r   rG   zdoes not match index lengthr`   N)r   rL  r6   r7   r#  rg   rh   r   )r8   rP  r:   ri   s   &&  r<   %test_constructor_mix_series_nonseries?TestDataFrameConstructors.test_constructor_mix_series_nonseries  s    +c"Ck#.>)?@3PS*
 	b//!c3Z-"@A+]]:S11sK,c4C8H3I#23NOP 2111s   <*B00C	c                    R p\         P                  ! \        VR7      ;_uu_ 4        \        \        P
                  ^.^^ ..\        P                  R7       RRR4       R#   + '       g   i     R# ; i)r_   r`   r/   N)rg   rh   r   r   r2   rf   r  r  s   & r<   %test_constructor_miscast_na_int_dtype?TestDataFrameConstructors.test_constructor_miscast_na_int_dtype  sG    J]]-S99{QF+288< :999s   0A!!A2	c                    \        ^^..RR.R7      p\        ^^..4      pRR.Vn        \        P                  ! W4       \         P                  ! R.RR.R7      p\        P                  ! W24       R# )r  r   r   N)r  r   )r   r   r6   r7   from_records)r8   r:   edfidfs   &   r<   "test_constructor_column_duplicates<TestDataFrameConstructors.test_constructor_column_duplicates  sg    Ax#s4!Q!Cj
b&$$fXSzB
c'r?   c                   \        ^ ^.^ ^.\        R7      p\        ^ ^.^ ^.\        P                  ! \        P
                  R7      R7      p\        ^ ^.^ ^.\        R7      pV'       d   \        P                  ! WC4       M\        P                  ! WB4       \        ^ ^.^ ^.\        P                  R7      p\        P                  ! WB4       \        ^ ^.^ ^.RR7      p\        P                  ! WB4       R# )r   r  na_valueU5N)
r   ru   r]  StringDtyper2   rf   r1   r6   r7   str_)r8   r   r;   expected_strr:   s   &&   r<   (test_constructor_empty_with_string_dtypeBTestDataFrameConstructors.test_constructor_empty_with_string_dtype  s    Aq6Aq6H a&1a&0O
 aVaV3?!!"3!!"/aVaV277C
b+aVaV4@
b+r?   c                j    \        R .VR7      p\        R .VR7      p\        P                  ! W24       R# )c1r   r0   Nr   )r8   nullable_string_dtyper;   r:   s   &&  r<   ,test_constructor_empty_with_string_extensionFTestDataFrameConstructors.test_constructor_empty_with_string_extension  s.    dV3HIv-BC
b+r?   c           
     |   \        R . RO. ROR7      p\        P                  ! V\        \        P                  ! VP
                  4      P                  R4      VP                  VP                  4      4       \        ^ . RO. ROR7      p\        P                  ! V\        \        P                  ! VP
                  4      P                  R4      VP                  VP                  4      4       \        R^^.RR.R7      p\        P                  ! V\        \        P                  ! RR.RR..\        R7      ^^.RR.R7      4       Rp\        P                  ! \        VR7      ;_uu_ 4        \        R^^.4       R	R	R	4       \        P                  ! \        VR7      ;_uu_ 4        \        RRR.R
7       R	R	R	4       Rp\        P                  ! \        VR7      ;_uu_ 4        \        R^^.RR.\        4       R	R	R	4       R	#   + '       g   i     L; i  + '       g   i     Lj; i  + '       g   i     R	# ; i)        r   r   r   r   r  r/   z*DataFrame constructor not properly called!r`   Nr   zincompatible data and dtyper  r   )r   r6   r7   r2   rX  r  r5   rV   r   re   ru   rg   rh   r   r   r   )r8   r:   ri   s   &  r<   test_constructor_single_value7TestDataFrameConstructors.test_constructor_single_value  s   s)_E
	"((288,33I>"**U	
 q	?C
	"((288,33G<bhh

S	
 s1a&3*=
3*sCj1@!fc
	
 ;]]:S11cAq6" 2]]:S11cC:. 2 ,]]9C00cAq6C:u5 10 2111 100s$   *H%H#H*H	H'	*H;	c                   \         P                  ! \        4      P                  p\         P                  ! \         P                  4      P                  p\         P                  ! \         P
                  4      P                  p\        R ^RRRRR\        R4      P                  R4      R\        R	^^^ ^ 4      /\         P                  ! ^
4      R
7      pVP                  p\        \         P                  ! R4      .V'       g   \         P                  ! V4      M$\        P                  ! \         P                  R7      .^,          ,           \         P                  ! R4      \         P                  ! R4      .,           \!        R4      R
7      p\"        P$                  ! Wg4       \        RRR^RRV\         P&                  ! RVR7      V\         P&                  ! ^VR7      /\         P                  ! ^
4      R
7      pVP                  p\        \         P                  ! R4      \         P                  ! R4      V'       g   \         P                  ! R4      M$\        P                  ! \         P                  R7      \         P                  ! R4      \         P                  ! V4      .RRRW2.R
7      p\"        P$                  ! Wg4       \        RRR^RRV\         P&                  ! R.^
,          VR7      V\         P&                  ! ^.^
,          VR7      /\         P                  ! ^
4      R
7      pVP                  p\        \         P                  ! R4      \         P                  ! R4      V'       g   \         P                  ! R4      M$\        P                  ! \         P                  R7      \         P                  ! R4      \         P                  ! V4      .RRRW2.R
7      p\"        P$                  ! Wg4       R# )r'  rs   r   r+  r,  r  20010101r5  E  rU   r  r  M8[s]rm   ABCDEr   r   r   r   r/   r   ru   N)r2   r0   r-  rd   r   r   r   r"   r[   r   r3   r8  r    r]  r  rf   rL  r6   rx   re   )r8   r   intname	floatname
objectnamer:   r{   r;   s   &&      r<   test_constructor_with_datetimes9TestDataFrameConstructors.test_constructor_with_datetimes3  s   ((3-$$HHRZZ(--	XXbjj)..
 QUUYz*2237XdAq!Q/ ))B-	
 XXg * $^^RVV4
  xx "((8"456 w-

 	v0 SQU288Cy9!73 ))B-	
 #!) "^^RVV4#! S)5
 	v0 SQU288SEBJi@1#(': ))B-	
 #!) "^^RVV4#! S)5
 	v0r?   c                    \        R R^
R7      pV Uu. uF  q"P                  4       NK  	  pp\        V4      pVP                  R8X  g   Q hR# u upi )r  r  startr\  rD   rm   N)r$   to_pydatetimer    r0   )r8   indts	datetimes
datetime_ss   &    r<    test_constructor_with_datetimes1:TestDataFrameConstructors.test_constructor_with_datetimes1  sN    |#rB256#B%%'#	6I&
8+++ 7s   Ac                   \        R R^
R7      pV Uu. uF  q"P                  4       NK  	  ppV Uu. uF  q"P                  4       NK  	  pp\        VR.R7      pWER&   VP                  p\        \        P                  ! R4      \        P                  ! R4      .RR.R7      p\        P                  ! Wg4       R	# u upi u upi )
r  r  r  r  r   datesdatetime64[us]ru   rU   N)
r$   r  r
   r   r8  r    r2   r0   r6   rx   )r8   r  r  r  r  r:   r{   r;   s   &       r<    test_constructor_with_datetimes2:TestDataFrameConstructors.test_constructor_with_datetimes2  s    |#rB256#B%%'#	6%()SrS)y;-87XX&'();<(
 	v0 7)s
   B:B?c                   \        R ^^\        P                  ! R4      R7      p\        RV/^ .R7      pVP                  R,          V8X  g   Q h\
        P                  ! VP                  \        RR/\        R7      4       \        RV/.4      pVP                  R,          V8X  g   Q h\
        P                  ! VP                  \        RR/\        R7      4       R# )	  ri  )tzinfozEnd DaterU   datetime64[us, US/Eastern]r/   Nr  )
r   zoneinfoZoneInfor   iatr6   rx   r8  r    ru   )r8   rT   r:   s   &  r<    test_constructor_with_datetimes3:TestDataFrameConstructors.test_constructor_with_datetimes3  s     dAq):):<)HI
B's3vvd|r!!!
IIvz+GHPVW	
 R()*vvd|r!!!
IIvz+GHPVW	
r?   c                   \        R ^R7      p\        RV/4      pVP                  R,          P                  e   Q h\        R ^RR7      p\        RV/4      p\	        VP                  R,          P                  4      R8X  g   Q h\        R ^RR7      p\        RV/4      p\	        VP                  R,          P                  4      R8X  g   Q hR# )20130101r|  rY   NUTCrC   ri  r  )r$   r   r  rE   r1   )r8   drr:   s   &  r<    test_constructor_with_datetimes4:TestDataFrameConstructors.test_constructor_with_datetimes4  s     
A.}%vvd|&&&
A%8}%266$<??#u,,,
A,?}%266$<??#|333r?   c                   \        R ^RRR7      p\        RVP                  4       P                  RR7      /4      p\        4       pWR&   \        P
                  ! W24       \        RV/4      p\        P
                  ! W24       R# )1/1/201110sri  rD   r\  rE   r   TdropNr$   r   	to_seriesreset_indexr6   r7   )r8   re  r;   r:   s   &   r<    test_constructor_with_datetimes5:TestDataFrameConstructors.test_constructor_with_datetimes5  so     z15\Jc1;;=#<#<$#<#GHI[3
b+Qx 
b+r?   c                    \        R ^RRR7      p\        R ^RR7      p\        RVRV/4      p\        RVP                  4       P                  RR7      RV/4      p\        P
                  ! W44       R	# )
r  r  ri  r  rD   r\  r   r   Tr  Nr  )r8   re  i_no_tzr:   r;   s   &    r<    test_constructor_with_datetimes6:TestDataFrameConstructors.test_constructor_with_datetimes6  sh    z15\JZ?QW-.c1;;=#<#<$#<#GgVW
b+r?   r9   r   c                f   \        V4      P                  pR p\        V\        P                  4      '       d   RpM<\
        ;QJ d    R V 4       F  '       g   K   RM	  RM! R V 4       4      '       g   Rp\        \        P                  ! RV R24      .4      p\        P                  ! W$4       R# )	rS   r=  c              3   f   "   T F'  q F  p\        V\        P                  4      x  K!  	  K)  	  R # 5ir   )r   r2   r   )r   r   r   s   &  r<   r   RTestDataFrameConstructors.test_constructor_datetimes_with_nulls.<locals>.<genexpr>  s'     J3a1Z2==1113s   /1TFr5  datetime64[]N)
r   r8  r   r2   ndarrayanyr    r0   r6   rx   )r8   r9   r{   r>  r;   s   &&   r<   %test_constructor_datetimes_with_nulls?TestDataFrameConstructors.test_constructor_datetimes_with_nulls  s     3&&c2::&&DJ3JJ3JJJD288k$q$9:;<
v0r?   orderr>  hc                   R V R2p\         P                  ! . R	O. R
O.VVR7      p\        V4      p\        VP                  R4      4      pVR9   dQ   \        P
                  ! \        RR7      ;_uu_ 4        VP                  V4       RRR4       VP                  R4      pMVP                  VR7      p\        P                  ! WV4       R#   + '       g   i     LL; i)r  r	  r0   r  r   Cannot castr`   Nzdatetime64[s]r/   )z
2015-01-01z
2015-01-02z
2015-01-03)z
2017-01-01z
2017-01-02z
2017-02-03)r   r  r  r   )	r2   re   r   r5   rg   rh   r   r6   r7   )r8   r  r>  r0   nar:   r;   s   &&&    r<   !test_constructor_datetimes_non_ns;TestDataFrameConstructors.test_constructor_datetimes_non_ns  s     dV1%XX:: 
 r]RYYx01''y>>& ?  7HU3H
b+ ?>s   6CC	c                   R V R2p\         P                  ! \         P                  ! ^R4      \         P                  ! ^R4      .\         P                  ! ^R4      \         P                  ! ^R4      ..VVR7      p\        V4      pVR9   d   RpMTp\         P                  ! RV R24      p\        \        ^R4      \        ^R4      .\        ^R4      \        ^R4      ..VR7      p\        P                  ! WX4       R# )	ztimedelta64[r	  r  r  r5  zm8[r/   N)r  r  r   )r2   re   rI  r   r0   r!   r6   r7   )	r8   r  r>  r0   r  r:   exp_unitrT  r;   s	   &&&      r<   !test_constructor_timedelta_non_ns;TestDataFrameConstructors.test_constructor_timedelta_non_ns  s     tfA&XX3'3)?@3'3)?@ 
 r]?"HHHHs8*A./	1c"Ia$561c"Ia$56 
 	b+r?   c                ~   \        \        ^4       Uu. uF  p\        P                  ! ^4      NK  	  up4      pVP                  p\        \        P                  ! R4      .^,          4      p\        P                  ! WE4       \        \        ^4       Uu. uF/  p\        P                  ! \        P                  ! ^4      RR7      NK1  	  up4      pVP                  p\        \        P                  ! R4      .^,          4      p\        P                  ! WE4       \        RRR./4      pVP                  P                  ^ ,          \        P                  ! R4      8X  g   Q h\        ^^.4      pVP                  P                  ^ ,          \        P                  ! R4      8X  g   Q h\        RR.4      pVP                  P                  ^ ,          \        P                  ! R4      8X  g   Q h\        R^^./4      pVP                  P                  ^ ,          \        P                  ! R4      8X  g   Q h\        RRR./4      pVP                  P                  ^ ,          \        P                  ! R4      8X  g   Q h\        R^/\        ^4      R	7      pVP                  P                  ^ ,          \        P                  ! R4      8X  g   Q h\        RR/\        ^4      R	7      pVP                  P                  ^ ,          \        P                  ! R4      8X  g   Q h\        R. ROR
. ROR\        R4      R\        ^4       Uu. uF  p\        R^^4      NK  	  upR. RO/4      pVP                  p\        \        P                  ! R4      \        P                  ! R4      V'       g   \        P                  ! R4      M$\        P                  ! \        P                  R7      \        P                  ! R4      \        P                  ! R4      .\        R4      R	7      p\        P                  ! WE4       R# u upi u upi u upi )r   r-  int32r/   r   r  r   r   r   rU   r   r   r  r     r  ru   r  r  abcdeNl        l       )rI   r   r   r  )g333333?gffffff@gffffff@g333333@)r   r   r  r  )r   r   r2   r3   r8  r    r0   r6   rx   re   r  rL  r   r]  r  rf   )r8   r   r   r:   r{   r;   re  s   &&     r<   %test_constructor_for_list_with_dtypes?TestDataFrameConstructors.test_constructor_for_list_with_dtypes-  s   eAh7h		!h78288E?+a/0
v0uQxPx!1W=xPQ288G,-12
v0 eY/01yy~~a BHHW$5555 1vyy~~a BHHW$5555Sz"yy~~a BHHY$7777aV}%yy~~a BHHW$5555c3Z()yy~~a BHHY$7777QxuQx0yy~~a BHHW$5555Szq2yy~~a BHHY$7777 \)T&\E!H=HqhtQ*H=%
 !#) "^^RVV4)*# w-
 	v0s 8
 QF >s   P05P5>P:c                    \        VR R7      p^VR&   VR,          ^8H  P                  4       '       g   Q hVR,          ^8H  P                  4       '       d   Q hR# )Tr  r'  N)r   r  )r8   rP  cops   && r<   test_constructor_frame_copy5TestDataFrameConstructors.test_constructor_frame_copyj  sV    $/CCA""$$$$$)..00000r?   c                    VP                  4       p\        V4      pVP                  VP                  Jg   Q h\        P                  ! \        V4      4      Vn        \        P                  ! W4       R # r   )	r   r   rL   r2   r3   rK   rV   r6   r7   )r8   rP  origr!  s   &&  r<   #test_constructor_frame_shallow_copy=TestDataFrameConstructors.test_constructor_frame_shallow_copyp  sV     !$xx{/////IIc#h'	
k0r?   c                .   VP                   P                  4       p\        V4      p^V^&   VP                   ^,          ^8H  P                  4       '       d   Q h\        VRR7      p^V^&   VP                   ^,          ^8H  P                  4       '       d   Q hR# )r   Tr  N)r   r   r   r  )r8   rP  r9   r:   s   &&  r<   test_constructor_ndarray_copy7TestDataFrameConstructors.test_constructor_ndarray_copy{  s      %%'s^AIIaLA%**,,,,s&AIIaLA%**,,,,,r?   c                    VP                   p\        R VR ,          /RR7      p^VP                  VP                  ^ ,          VP                  R,          1R 3&   VR ,          ^8H  P	                  4       '       d   Q hR# )r'  Tr  NrJ  )r  r   r#  rV   r  )r8   rP  r?  r:   s   &&  r<   test_constructor_series_copy6TestDataFrameConstructors.test_constructor_series_copy  sm    $$VC[)5 34rxx{RXXb\)3./3K1$))+++++r?   r:   rU   g?g@r   c                J   \        \        VP                  4      4       F  pVP                  R V3,           K  	  \        P
                  ! \        VP                  4      4      \        VP                  4      ,          p\        V4      ^ 8X  dS   \        P                  ! \        RR7      ;_uu_ 4        VP                  R \        P                  3,           RRR4       R# \        V4      ^8X  dU   \        P                  ! VP                  R V^ ,          3,          VP                  R \        P                  3,          4       R# \        P                  ! VP                  R V3,          VP                  R \        P                  3,          4       R#   + '       g   i     R# ; i)rG   z^nan$r`   N)r   rK   r   r  r2   r3   r%   rg   rh   KeyErrorr#  rf   r6   rx   r7   )r8   r:   re  indexers   &&  r<   test_constructor_with_nas3TestDataFrameConstructors.test_constructor_with_nas  s	   " s2::'AGGAqDMM ( ))C

O,T"**-=> w<1xw77q"&&y! 87 \Q""2771gaj=#9266!RVV);LM !!"''!W*"5rvvai7HI 877s   2$FF"	c                    \        R \        P                  R./4      pVR ,          P                  \        P                  8X  g   Q hVR ,          ^,          '       d   Q hR# )r   FN)r   r2   rf   r0   r   )r8   r   s   & r<   &test_constructor_lists_to_object_dtype@TestDataFrameConstructors.test_constructor_lists_to_object_dtype  sG    sRVVUO,-v||rzz)))S6!99}9r?   c           
        \        . RO4      p\        P                  ! V4      P                  R^4      p\        P                  ! VR4      p\        W!P                  R7      p\        ^ V^V^V^V/4      p\        P                  ! W44       R# )r'  r/   Nr  rJ  r\  )	r   r2   re   r4   broadcast_tor   r0   r6   r7   )r8   catr9   r{   r;   s   &    r<   *test_constructor_ndarray_categorical_dtypeDTestDataFrameConstructors.test_constructor_ndarray_categorical_dtype  sm    /*hhsm##B*ooc6*3ii0aaaa=>
f/r?   c                z   \        R \        R4      /RR7      p\        \        R4      RR R7      p\        P                  ! VR ,          V4       \        \        R4      RR7      pVP                  4       p\        \        R4      R^ R7      p\        P                  ! V^ ,          V4       VP                  RR7      p\        \        R4      RRR7      p\        P                  ! VR,          V4       \        \        R4      RR7      p\        \        R4      R^ R7      p\        P                  ! V^ ,          V4       R# )r'  r   categoryr/   rc   r   rt   N)r   rL  r    r6   rx   r  )r8   r:   r;   r5  r{   s   &    r<   test_constructor_categorical6TestDataFrameConstructors.test_constructor_categorical  s     T%[)<$u+ZcB
r#w1 4;j1$u+Za@
vay(3'$u+ZeD
ve}h7 tE{*5$u+Za@
r!uh/r?   c                    \        \        R 4      4      p\        V.4      p\        VP                  \        4      .4      p\
        P                  ! W#4       R# )r   N)r   rL  r   r5   ru   r6   r7   )r8   r8  r:   r;   s   &   r<   -test_construct_from_1item_list_of_categoricalGTestDataFrameConstructors.test_construct_from_1item_list_of_categorical  sB     $u+&ucjj012
b+r?   c                    \        \        \        R 4      4      \        \        R4      4      .4      p\        . RO. RO.4      p\        P                  ! W4       R# )r   abdNr   )r   r   r   r   r   rL  r6   r7   r  s   &  r<   (test_construct_from_list_of_categoricalsBTestDataFrameConstructors.test_construct_from_list_of_categoricals  sB     DK0+d5k2JKLo?@
b+r?   c                    \        \        \        R 4      4      \        R4      .4      p\        . RO. RO.4      p\        P                  ! W4       R# )r   defNr   r   r  frD  r  s   &  r<   %test_from_nested_listlike_mixed_types?TestDataFrameConstructors.test_from_nested_listlike_mixed_types  s=     DK0$u+>?o?@
b+r?   c                    \        \        \        R 4      4      \        \        R4      4      .4      p\        \        R 4      \        R4      .4      p\        P                  ! W4       R# )r   abdefgNrD  r  s   &  r<   0test_construct_from_listlikes_mismatched_lengthsJTestDataFrameConstructors.test_construct_from_listlikes_mismatched_lengths  sH    DK0+d8n2MNOd5k4>:;
b+r?   c                8   . R	Op\        V4      P                  R4      p\        VRR7      p\        P                  ! W24       . R
Op\        V4      P                  R4      p\        VRR7      p\        P                  ! W24       \	        R^R7      p\        \        \        P                  \        P                  \        P                  .. ROR7      4      pWEn        \        RV/4      p\        R\        . RORR7      /VR7      p\        P                  ! We4       R# )rI   r<  r/   20000101r|  )r   
categoriesr   rU   N)rI   r   r  rI   )r   r   r   r   r   )r    r5   r6   rx   r$   r   r2   rf   rV   r   r7   )r8   r  r  resrV   r;   r:   s   &      r<   #test_constructor_categorical_series=TestDataFrameConstructors.test_constructor_categorical_series  s    Um"":.U*-
s($Um"":.U*-
s( :q17OT
 c8_-VO:FGuU
b+r?   r0   c                f    \        R ^^./R.VR7      pVP                  P                  V8X  g   Q hR# )r   r   r  N)r   r   r0   r8   r0   r   s   && r<   %test_check_dtype_empty_numeric_column?TestDataFrameConstructors.test_check_dtype_empty_numeric_column	  s2     #1vUCvv||u$$$r?   c                z    \        R ^^./R.VR7      pVP                  P                  P                  R8X  g   Q hR# )r   r   r  ru   N)r   r   r0   rd   rX  s   && r<   $test_check_dtype_empty_string_column>TestDataFrameConstructors.test_check_dtype_empty_string_column	  s8     #1vUCvv||  H,,,r?   c                   \        ^ \        R7      P                  4       P                  p\        ^ \        /4      p\        P
                  ! W4       \        \        ^ \        R7      4      P                  p\        P
                  ! W4       R# )r   r  N)r    ru   r  r8  r6   rx   r   r  s   &  r<   test_to_frame_with_falsey_names9TestDataFrameConstructors.test_to_frame_with_falsey_names"	  s^    Qf-668??1f+&
v06q78??
v0r?   c                    \        R . RO/T;'       g    RR7      p\        \        ^4      R .VR7      p\        P                  ! W24       \        R \        ^4      /VR7      p\        P                  ! W24       R# )r'  r  r/   r  N)r   rI   r   r  r   )r   r   r6   r7   )r8   r0   r;   r{   s   &&  r<   test_constructor_range_dtype6TestDataFrameConstructors.test_constructor_range_dtype+	  se     c?35;K;KGL 58cU%@
f/ Cq?%8
f/r?   c           	          ! R  R\         4      p\        . RO. RO.4      p\        V! V! . RO4      V! . RO4      .4      4      p\        P                  ! W24       R# )c                       ] tR tRtRtR# )ETestDataFrameConstructors.test_frame_from_list_subclass.<locals>.Listi:	  r   NrE  r   r?   r<   Listrf  :	  rG  r?   rg  Nr  r  )rL  r   r6   r7   )r8   rg  r;   r{   s   &   r<   test_frame_from_list_subclass7TestDataFrameConstructors.test_frame_from_list_subclass8	  sI    	4 	 i344i$y/ BCD
f/r?   extension_arraabbcz1/1/2017z1/1/2018)r  endr\  c                p    \        \        V4      4      p\        V4      p\        P                  ! W24       R # r   rd  )r8   rj  r;   r{   s   &&  r<   %test_constructor_with_extension_array?TestDataFrameConstructors.test_constructor_with_extension_arrayA	  s+     VM23=)
f/r?   c           	         \         P                  ! 4       pW3p\        V\        \	        ^4      \	        ^4      R7      /V.R7      p\        . RO\        \        V.4      4      R7      p\        P                  ! W44       R# )r  rU   r   Nr  )r
   todayr   r    r   r   r6   r7   )r8   r  tupr{   r;   s   &    r<   *test_datetime_date_tuple_columns_from_dictDTestDataFrameConstructors.test_datetime_date_tuple_columns_from_dictP	  s[    JJLdCaa!ABSERYfcUm0DE
f/r?   c           	     B   \        . RO\        . RO4      R7      p\        . RO\        . RO4      R7      p\        W.4      p\        \        P                  ! ^'^^\        P
                  \        P
                  .. RO.4      . R	OR7      p\        P                  ! W44       R# )
'   rU   r   N)rv  r  r   )femalemaleunknown)r      r         )rJ  rw  r   rx  ry  )g      c@g     @n@g     b@r   r   )rw  rx  ry  rJ  r   )r    r   r   r2   re   rf   r6   r7   )r8   r  r  r{   r;   s   &    r<   /test_construct_with_two_categoricalindex_seriesITestDataFrameConstructors.test_construct_with_two_categoricalindex_seriesX	  s{    J&67T&UV!"#JK
 B8$HHr1a02QRS;
 	f/r?   z7ignore:invalid value encountered in cast:RuntimeWarningc                   \        \        ^d4      4      p\        V^
4      P                  4       P	                  ^4      p\        V^
4      P                  4       P                  ^4      p\        RVRV/4      p\        \        RRRR7      \        RRRR7      \        RRRR7      \        RRRR7      \        RR	RR7      \        R	R
RR7      \        R
RRR7      \        RRRR7      \        RRRR7      \        R^cRR7      .
RR7      p\        R^
.^,          \        P                  .^,          ,           R\        P                  .^,          ^
.^,          ,           /VR7      p\        P                  ! Wd4       R# )rs  r  r   g#@rh  )closedg3@g33333=@gC@g     H@g33333M@g33333SQ@gS@gfffffFV@T)orderedrU   NgMbX)r    r   r#   value_countsheadtailr   r   r   r2   rf   r6   r7   )r8   r  ser1ser2r{   rV   r;   s   &      r<   1test_constructor_series_nonexact_categoricalindexKTestDataFrameConstructors.test_constructor_series_nonexact_categoricalindexf	  sD   
 U3Z 3|((*//23|((*//2CsD12 W5d73tG4tG4tG4tG4tG4tG4tG4r'2 
 2$(bffX\)31tax0GHPU
 	h/r?   c                   \        R ^	^	^ ^ 4      \        R ^	^^^
4      3.p\        P                  ! VRR.R7      p\        V4      pVR,          ^ ,          V^ ,          ^ ,          8X  g   Q hVR,          ^ ,          V^ ,          ^,          8X  g   Q h\	        VR,          4      p\        V^ ,          \        4      '       g   Q hV^ ,          V^ ,          ^ ,          8X  g   Q hR# )r  DateForecastingr/   N)r  rm   )r  rm   )r   r2   re   r   r    r   r"   )r8   r  r9   r:   r5  s   &    r<   test_from_M8_structured1TestDataFrameConstructors.test_from_M8_structured	  s    4Aq!,htQ2r.JKLhhu%79R$STs^&z!}a+++- #uQx{2223v;!A$	****tuQx{"""r?   c           
          ! R  R\         4      p\        RV! R^^^^4      ./4      pVP                   P                  R8X  g   Q hR# )c                       ] tR tRtRtR# )OTestDataFrameConstructors.test_from_datetime_subclass.<locals>.DatetimeSubclassi	  r   NrE  r   r?   r<   DatetimeSubclassr  	  rG  r?   r  r   i  r  N)r   r   r0   )r8   r  r   s   &  r<   test_from_datetime_subclass5TestDataFrameConstructors.test_from_datetime_subclass	  sI    	x 	 *'7aAq'I&JKL}}""&6666r?   c                    \        R ^RR7      pRp\        P                  ! \        VR7      ;_uu_ 4        \	        V\        ^4      R7       RRR4       R#   + '       g   i     R# ; i)rA   rB   rC   z@Shape of passed values|Passed arrays should have the same lengthr`   rU   N)r$   rg   rh   r   r   r   )r8   rN   ri   s   &  r<   (test_with_mismatched_index_length_raisesBTestDataFrameConstructors.test_with_mismatched_index_length_raises	  sC    q\BP]]:S11cq* 2111s   AA'	c                ^   \        R RRR7      p\        P                  ! V4      p\        R\        P                  P                  ^4      P                  \        V4      4      RV/4      p\        P                  ! VR,          P                  \        P                  ! R4      4      '       g   Q hR# )z1/1/2000 00:00:00z1/1/2000 1:59:50r  r[  r'  rs   r   N)
r$   r2   r  r   r1  r2  r  rK   
issubdtyper0   )r8   rR  r  r:   s   &   r<   !test_frame_ctor_datetime64_column;TestDataFrameConstructors.test_frame_ctor_datetime64_column	  s}    ,.@uM

3"))''*::3s8Dc5Q
 }}RW]]BHHX,>????r?   c           	        . RO. RO.p\        \        P                  P                  ^4      P	                  R4      V Uu. uF  p\        P
                  ! V4      NK  	  upR7      p\        VP                  \        4      '       g   Q h\        VP                  \        4      '       d   Q h\        \        P                  P                  ^4      P	                  R4      VR7      p\        VP                  \        4      '       g   Q hR# u upi )r   rU   r   N)r   r   r   r   )r   r   r   r   )r   r   )
r   r2   r1  r2  r  re   r   rV   r   r   )r8   index_listsr   multis   &   r<   +test_dataframe_constructor_infer_multiindexETestDataFrameConstructors.test_dataframe_constructor_infer_multiindex	  s    +-ABII!!!$44V<(341288A;4
 %++z2222emmZ8888II!!!$44V<k
 %--4444 5s   D

input_valsr  r   r  r  r  c                    \        R V/VR7      p\        R V/4      P                  R V/4      p\        P                  ! W44       R# )r'  r/   N)r   r5   r6   r7   )r8   r  rF  r{   r;   s   &&&  r<   test_constructor_list_str3TestDataFrameConstructors.test_constructor_list_str	  sB     C,LAc:./66\7JK
f/r?   c                ~    \        R . RO/VR7      p\        R . RO/\        R7      p\        P                  ! W#4       R# )r'  Nr/   r   r   N)z1.0z2.0N)r   ru   r6   r7   )r8   rF  r{   r;   s   &&  r<   test_constructor_list_str_na6TestDataFrameConstructors.test_constructor_list_str_na	  s4    C!12,Gc#78G
f/r?   r   c                  aaa	a
a \         P                  ! ^^.VR7      o\         P                  ! ^^.VR7      oSP                  P                  R9   d$   \        P
                  ! SP                   R24       \        P                  ! ^^.VR7      o	S	P                  4       p\        RSRSRS	/VR7      o
R oRR VVV	V
V3R	 lllpV'       g   V! 4        \        P                  ! S
P                  P                  ^ ,          R
4      '       * pV'       dN   \        P                  ! \        RR7      ;_uu_ 4        ^ S
P                  R&   ^ S
P                  R&   RRR4       R# ^ S
P                  R&   ^ S
P                  R&   V'       g	   V! R4       \        P                  ! ^-^..S	P                  R7      S
P                  R&   S
P                  P                  ^,          S	P                  8X  g   Q hV'       d   SP                  P                  R8X  dV   S^ ,          SP                  P                  ^R4      8X  g   Q hS^ ,          SP                  P                  ^R4      8X  g   Q hMRS^ ,          SP                  P                  ^4      8X  g   Q hS^ ,          SP                  P                  ^4      8X  g   Q hS	^ ,          V^ ,          8X  g   Q hR# R#   + '       g   i     R# ; i)rI   r/   z2 get cast, making the checks below more cumbersomer   r   r   r  c                     \        V \        P                  4      '       d   V P                  # \        V P                  \        P                  4      '       d   V P
                  P                  # \        hr   )r   r2   r
  baser0   _ndarrayr   r   s   &r<   get_base<TestDataFrameConstructors.test_dict_nocopy.<locals>.get_base	  sF    #rzz**xxCIIrxx00||(((r?   c                $    V ^8  d   QhR\         /# )r   c_only)rW  )r  s   "r<   r  @TestDataFrameConstructors.test_dict_nocopy.<locals>.__annotate__	  s     	 	 	r?   c                 @  < \        V3R  lSP                  P                   4       4      ^8X  g   Q hV '       d   R# \        VV3R lSP                  P                   4       4      ^8X  g   Q h\        VV3R lSP                  P                   4       4      ^8X  g   Q hR# )c              3   >   <"   T F  qP                   SJ x  K  	  R # 5ir   )r   )r   r   r   s   & r<   r   RTestDataFrameConstructors.test_dict_nocopy.<locals>.check_views.<locals>.<genexpr>	  s     =nxx1}ns   Nc              3      <"   T FO  p\        VP                  P                  \        P                  4      '       g   K9  S! VP                  4      SJ x  KQ  	  R # 5ir   r   r   r0   r2   )r   r   r   r  s   & r<   r   r  	  >      +!!((.."((; ,HQXX&!++
   6AAc              3      <"   T FO  p\        VP                  P                  \        P                  4      '       g   K9  S! VP                  4      SJ x  KQ  	  R # 5ir   r  )r   r   r   r  s   & r<   r   r  	  r  r  )sumrL   rM   )r  r   r   r   r:   r  s   &r<   check_views?TestDataFrameConstructors.test_dict_nocopy.<locals>.check_views	  s    
 =bggnn==BBB   WW^^ 
   WW^^ 
 r?   fciuOzInvalid valuer`   NTr   rS   )SU)Fr  r"  )rG   r   )r2   re   r0   r   rg   skipr]  r   r   r   is_np_dtyper8  r  rh   r   type)r8   r   any_numeric_ea_dtypeany_numpy_dtypec_origr  should_raiser   r   r   r:   r  s   &&&&   @@@@@r<   test_dict_nocopy*TestDataFrameConstructors.test_dict_nocopy	  s#    HHaV?3HHaV?377<<:%KK177)#UVWHHaV#78QQQ/d;	 	 	8 M ??299>>!+<gFFy@@ ! ! A BGGDMBGGDM "b9yy~~a AGG+++ww||s"tqww||At4444tqww||At4444tqww||A...tqww||A...Q46!9$$$  A@ s   9KK%	c                    \        . RORR7      p\        RV/4      p\        P                  ! VP                  P
                  VR,          P                  P
                  4      '       d   Q hR# )rI   r  r/   r   Nr  )r    r   r2   r  r   rJ   )r8   r  r:   s   &  r<   "test_construct_from_dict_ea_series<TestDataFrameConstructors.test_construct_from_dict_ea_series#
  sR     Yg.Sz"##CJJ$4$4bgnn6J6JKKKKKr?   c                ~    \        \        ^RR7      R.R7      p\        R.R7      p\        P                  ! W4       R# )rI   r   rt   r,  r   Nrd  r  s   &  r<   'test_from_series_with_name_with_columnsATestDataFrameConstructors.test_from_series_with_name_with_columns*
  s1    6!%05'BeW-
f/r?   c                    \        . RO. RO.. RO. RO.R7      p\        . RO. RO.\        P                  ! . RO4      R7      p\        P                  ! W4       R# )rI   r   Nr  r  )r'  r'  r'  r   ))r'  r   )r'  r   )r'  r   )r   r   r  r6   r7   r  s   &  r<   test_nested_list_columns2TestDataFrameConstructors.test_nested_list_columns0
  sN    	"_o,N
 	"**+OP
 	f/r?   c           
        \         P                  ! R ^R7      pVP                  P                  \        4      P                  ^R4      p\        V4      pVP                  R8X  g   Q hVP                  VP                  8H  P                  4       '       g   Q hW18H  P                  4       P                  4       '       g   Q h\         P                  P                  . RO4      pVP                  P                  \        4      P                  ^R4      p\        V4      pVP                  R8X  g   Q hVP                  VP                  8H  P                  4       '       g   Q hWd8H  P                  4       P                  4       '       g   Q h\        P                  W%W%3,          P                  p\        V4      p\        ^ V^V^V^V/4      p	\         P"                  ! W4       R# )z
2016-04-05r|  NrJ  rI   r  )r  r   r   r  )r]  rp  rJ   r5   ru   r4   r   r  r8  r0   r  IntervalIndexfrom_breaksr2   r_r,  r6   r7   )
r8   pir   r:   iidata2r  data3rS  r;   s
   &         r<   1test_from_2d_object_array_of_periods_or_intervalsKTestDataFrameConstructors.test_from_2d_object_array_of_periods_or_intervals;
  sk   __\15xxv&..q"5t_xx6!!!		RXX%**,,,,~~##%%%%)),7'//26yyF"""

bhh&++----	 $$&&&& d4./11aQAr1b9:
c,r?   zcol_a, col_bc                    R p\         P                  ! \        VR7      ;_uu_ 4        \        RVRV/4       RRR4       R#   + '       g   i     R# ; i)z,Per-column arrays must each be 1-dimensionalr`   r   r   Nr  )r8   col_acol_bri   s   &&& r<   test_error_from_2darray1TestDataFrameConstructors.test_error_from_2darrayQ
  s:     =]]:S11sE3./ 2111s   AA	c           
        \        . RO. R	ORR7      p\        P                  ! VR,          P                  VR,          P                  4      '       d   Q h^ VP                  R
&   \        R^ \        P
                  \        P
                  .R\        P
                  \        P
                  \        P
                  .R\        P
                  \        P
                  \        P
                  ./. RO\        R7      p\        P                  ! W4       R# )rI   r   r   r   F)rV   r   r   rV   r0   Nr  r   r  )	r   r2   r  _valuesr  rf   ru   r6   r7   r  s   &  r<   &test_from_dict_with_missing_copy_false@TestDataFrameConstructors.test_from_dict_with_missing_copy_false^
  s    YeL##BsGOORW__EEEEa(bffbffbff-bffbffbff-
 
 	b+r?   c                    R p\         P                  ! \        VR7      ;_uu_ 4        \        \        P
                  ! . 4      RR.R7       RRR4       R#   + '       g   i     R# ; i)z:Shape of passed values is \(0, 1\), indices imply \(0, 2\)r`   r   r   r  N)rg   rh   r   r   r2   re   r  s   & r<   1test_construction_empty_array_multi_column_raisesKTestDataFrameConstructors.test_construction_empty_array_multi_column_raiseso
  s=    K]]:S11288B<#s< 2111s   $AA&	c                v    \        . ROR.RR7      p\        R. RO/RR7      p\        P                  ! W4       R# )r  Nr   r1   r  r/   )r  r   Nr   r  s   &  r<   $test_construct_with_strings_and_none>TestDataFrameConstructors.test_construct_with_strings_and_noneu
  s3    '#eDc#34EB
b+r?   c           
     n   \         P                  ! \        P                  R 7      p\	        RRR./V\        R.VR7      R7      p\         P                  ! RR4      ;_uu_ 4        \	        RRR./4      pRRR4       \        P                  ! XV4       \	        RRR./V\        R.VR7      \        RR	.VR7      R
7      p\         P                  ! RR4      ;_uu_ 4        \	        RRR./RR	.R7      pRRR4       \        P                  ! W24       \	        RR^./R\        R.VR7      R7      p\         P                  ! RR4      ;_uu_ 4        \	        RR^./4      pRRR4       \        P                  ! W24       \	        RRR./R\        R.VR7      R7      p\         P                  ! RR4      ;_uu_ 4        \	        RRR./RR7      pRRR4       \        P                  ! W24       R#   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     Lc; i)r  r   r   r/   r0   r   future.infer_stringTNr   r   )r0   r   rV   rU   ru   )	r]  r  r2   rf   r   r   option_contextr6   r7   r8   r0   r;   r:   s   &   r<   test_frame_string_inference5TestDataFrameConstructors.test_frame_string_inference{
  s   /3*UE3%u4M
 4d;;C#s,-B <
b(+3*3%u-c
%0	
 4d;;C#s,S#J?B <
b+3(O8UC55N
 4d;;C#q?+B <
b+3*XucU%7P
 4d;;C#s,H=B <
b+5 <;; <;; <; <;s0   #G)G=H7H$)G:	=H	H!	$H4	c           	        \         P                  ! \        P                  R 7      p\	        RRR./V\        R.VR7      R7      p\         P                  ! RR4      ;_uu_ 4        \	        R\        P                  ! RR.4      /4      pRRR4       \        P                  ! XV4       \	        ^ RR.^RR	./VR7      p\         P                  ! RR4      ;_uu_ 4        \	        \        P                  ! RR.RR	..4      4      pRRR4       \        P                  ! W24       \	        RRR.RRR	./V\        RR.VR7      R7      p\         P                  ! RR4      ;_uu_ 4        \	        \        P                  ! RR.RR	..4      RR.R
7      pRRR4       \        P                  ! W24       R#   + '       g   i     EL,; i  + '       g   i     L; i  + '       g   i     LO; i)r  r   r   r/   r  r  TNr   r   r   )
r]  r  r2   rf   r   r   r  re   r6   r7   r  s   &   r<   .test_frame_string_inference_array_string_dtypeHTestDataFrameConstructors.test_frame_string_inference_array_string_dtype
  s~   /3*UE3%u4M
 4d;;C3*!567B <
b(+a#sQc
;5I4d;;288c3Z#s$<=>B <
b+3*cC:.3*E2

 4d;;288c3Z#s$<=SzRB <
b+! <;;
 <; <;s$   #$F*&F> *G*F;	>G	G!	c           	     "   \         P                  ! R R4      ;_uu_ 4        \        \        P                  ! RR.RR..4      4      pRRR4       XP
                  P                  ^ ,          P                  ^8X  g   Q hR#   + '       g   i     L@; i)r  ThellogoodbyeHelloN)r]  r  r   r2   re   rL   rM   r  ro   s   & r<   %test_frame_string_inference_block_dim?TestDataFrameConstructors.test_frame_string_inference_block_dim
  sg    4d;;288gy%9GW;M$NOPB <ww~~a %%*** <;s   &A>>B	rS  c                4   V! \        R 4      .\        R7      p\        VR.R7      pVP                  P                  ^ ,          \
        P                  8X  g   Q h\        RV/4      pVP                  P                  ^ ,          \
        P                  8X  g   Q hR# )z
2019-12-31r/   r   r   N)r"   ru   r   r8  r  r2   r   )r8   rS  r   r{   s   &&  r<    test_inference_on_pandas_objects:TestDataFrameConstructors.test_inference_on_pandas_objects
  sv     Y|,-V<3.}}!!!$

222C:&}}!!!$

222r?   c                    \        ^ ^.^^./4      P                  p\        ^4      p\        P                  ! WRR7       R# )r   Tr  N)r   r   r   r6   rN  r  s   &  r<   !test_dict_keys_returns_rangeindex;TestDataFrameConstructors.test_dict_keys_returns_rangeindex
  s8    AsAs+,44a=
fd;r?   consc                    \        R ^^4      pVP                  R4      pV! V.4      p\        P                  ! V4      pVR8X  g   Q V4       hV! V.4      p\        P                  ! V4      pVR8X  g   Q V4       hR# )i  rB   rm   zM8[us, US/Pacific]N)r"   rv   r6   	get_dtype)r8   r  r  ts2r   	res_dtypeobj2
res_dtype2s   &&      r<   /test_construction_datetime_resolution_inferenceITestDataFrameConstructors.test_construction_datetime_resolution_inference
  sy     tQ"nn\*B4jLL%	H$/i/$SE{\\$'
11=:=1r?   c                n    \        R ^.RR7      p\        RR.RR7      p\        P                  ! W4       R # )Nztimedelta64[ns]r/   r   z0 days 00:00:00.000000001r   r  s   &  r<   -test_construction_nan_value_timedelta64_dtypeGTestDataFrameConstructors.test_construction_nan_value_timedelta64_dtype
  s9    D!9,=>/08I
 	f/r?   c                     ! R  R\         P                  4      pV! \         P                  ! ^4      4      p\        V4      p\        \         P                  ! ^4      4      p\        P
                  ! W44       R# )c                   &   a  ] tR tRt o R tRtV tR# )`TestDataFrameConstructors.test_dataframe_from_array_like_with_name_attribute.<locals>.DummyArrayi
  c                ^    \         P                  ! V4      P                  V 4      pR Vn        V# )r   )r2   r  r   rd   )clsinput_arrayr   s   && r<   __new__hTestDataFrameConstructors.test_dataframe_from_array_like_with_name_attribute.<locals>.DummyArray.__new__
  s'    jj-2237 
r?   r   N)r  r  r  r  r  r  r  r  s   @r<   
DummyArrayr  
  s      r?   r  N)r2   r
  eyer   r6   r7   )r8   r  dummyr:   r;   s   &    r<   2test_dataframe_from_array_like_with_name_attributeLTestDataFrameConstructors.test_dataframe_from_array_like_with_name_attribute
  sP    	 	 266!9%uRVVAY'
b+r?   r   r^  l           l        l        )TFNr  )rI   r   Nr   )r   )r   r   r  r  ))rz   rz   rz   rz   )rz   rz   NN)rz   NNN)idx1idx2NN)r  r  r  N)r  r  idx3N)NNNN)Kr'  r+  F)r   r  r  r   r5  rP  r=  rS   )r  r  r   r5  rP  r=  rS   )r   rI   r   r  r  )r  rI   r   r   )Nuint8r<  )r  r  r  r  r=   rP   r\   rj   rp   r|   r   r   r   rg   markparametrizer   r   r   r   r   r   r   r   r  r	  r  r  r  r$  r)  r<  rB  rG  rT  rZ  rh  r2   re   ru   rl  uint16uint32rd  rp  rw  r  r  r  r  r  r  r  rf   r  r   r  r  r  r  r  r  r  r  r  r  r  r  r
  r  r  r  r  r%  r/  rE  rW  r_  re  r   r   r   r   r"   r[   r   rl  rs  rx  r{  r  filterwarningsr  r  r  r  rL  r   r   r0   r-  r  r]  BooleanDtypeFloat64Dtype
Int64Dtyper  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r  r  r  r  r  r  r(  r+  r0  r7  r   r5  r;  r@  rK  rN  rQ  rT  rY  r]  ra  re  rk  ro  ru  rz  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   rn   r   r   r  r  r  r  r"  r&  r)  r,  r   r1  r4  r9  r=  r@  rE  rK  rO  rU  r6   ALL_NUMERIC_DTYPESDATETIME64_DTYPESTIMEDELTA64_DTYPESBOOL_DTYPESrY  STRING_DTYPESBYTES_DTYPESOBJECT_DTYPESr\  r_  arm_slowrb  rh  r   r)   r'   r(   rp  rn  rs  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   to_datetimer
  r  r  r  r  r  s   @r<   r,   r,   L   s    ,(,	/11	1 [[Vc3Z0Q 1QB0 [[#!!,'(&&3,	
 0! 0G [[3T:a=*Q-0"Xz!}jm4"o
1z!}=	
00
8.*)$<
0"0"#
 [[ bMsAsE367BK	

)
).%	'-&+3* [[HHeWF+HHaeWKHHl^62HHl^$"uX\N	

%
% [[HHaS		*HHaS		*HHaS		*YYq\NYYq\NYYq\N	

%
%,&IP>
"'F
;1 [[X2664'=>0 ?0 [[Wq"&&$e&EF0 G0$ [[WrvvtU5\&BC0 D0$/0-,&:/x)59..5
)C000,6:> [[-w7((3('26A		
00*(, [[IC 011A&gw(GH,<8@@ES\:	


,

,*(6'p3  [[A?&?&B0,') [[/4b	?S#J

C4#sWbhhw.?@4b	?S#JRXXi5HIu~tRZZ81XtE"IUS"((9:MN	
	+	+ [[) )R__=y"//:7BMM2h7		
11U/20%-N,"070DD [[%&'9\*+,9\*+,)L)*		
00C(	C00
	00
0
C0
0 [[[4*=>0 ?0$ [[[4*=>0 ?0*05?0"0 [[HRDMBx Bx "XBx cA3Z1#s$#i%;<	
000
00070($,L0)( [[-	
000
>Q=
(,",6@Q1f,1
"4,, [[HHdD$hllndCDHHdD(,,.$78mmE"#dV,mmE"#bffX.VbmmE*+,VbffXffXe,-.ffXv		
11 [[W&:;[[3,	 <
,. [[W&:;[[	
, <,8;1z1	1-, [[y),QK@y),sC6HI|\2RVVS#rvv<VW!<02663RVV:T '6Aq@QR	
JJ*00,,,,,
,. [[



	


	  ..	%% [[!!BOO3b6F6FF--1 [[[[W&AB	0 C 	00 [[W&BFFBFFBFF348Aq>8Aq>:;jjsST		
0000 [[A004
#7+@5 [[V3Z*Z=>*ZNOAQ'(	
	0	00
 [[VeT]3R% 4R%hL0	0-, [[cA3ZA3*-.XXsQCj!QC!:.XXsQCj!288aS1#J#78	
00
,"=, ,D,0+ [[Wvuo63 73<
 [[y"((BNNS
>
>0, ,r?   r,   c                      a  ] tR tRt o R tR t]P                  P                  RRRR.R.^^^.R..4      R	 4       t	R
t
V tR# )&TestDataFrameConstructorIndexInferencei
  c                    \         P                  ! R RRR7      p\        \        P                  P                  ^4      P                  \        V4      4      V4      p\         P                  ! RRRR7      p\        \        P                  P                  ^4      P                  \        V4      4      V4      p\        RVRV/4      p\         P                  ! RRRR7      p\        P                  ! VP                  V4       R# )	z1/1/19991/1/2012r   r[  z1/1/1980z	12/1/2001r  r  N)r]  rp  r    r2   r1  r2  r  rK   r   r6   rN  rV   )r8   rng1r  rng2r  r:   r  s   &      r<   Atest_frame_from_dict_of_series_overlapping_monthly_period_indexeshTestDataFrameConstructorIndexInference.test_frame_from_dict_of_series_overlapping_monthly_period_indexes
  s    z:C@BII))!,<<SYGNz;SABII))!,<<SYGNb$+,ooj*3?
bhh,r?   c                H   \        R ^R7      p\        \        ^4      VR7      p\        \        ^4      VP                  R4      R7      p\        \        ^4      VP                  R4      R7      p\        \        ^4      4      p\	        RVRVRV/4      p\        \        VP                  4      \        VP                  4      ,           \        VP                  4      ,           \        R7      p\        P                  ! VP                  V4       \	        RVRVRV/4      p\        \        VP                  4      \        VP                  4      ,           \        VP                  4      ,           \        R7      p	\        P                  ! VP                  V	4       \	        RVRVRV/4      p
\        \        VP                  4      \        VP                  4      ,           \        VP                  4      ,           \        R7      p	\        P                  ! V
P                  V	4       \	        RVRVRV/4      p\        \        VP                  4      \        VP                  4      ,           \        VP                  4      ,           \        R7      p\        P                  ! VP                  V4       R	p\        P                  ! \        VR
7      ;_uu_ 4        \	        RVRVRVRV/4       RRR4       \        P                  ! \        VR
7      ;_uu_ 4        \	        RVRVRV/4       RRR4       \        P                  ! \        VR
7      ;_uu_ 4        \	        RVRVRV/4       RRR4       R#   + '       g   i     L; i  + '       g   i     Lc; i  + '       g   i     R# ; i)rA   r|  rU   r  z
US/Centralr'  rs   r+  r/   z0Cannot join tz-naive with tz-aware DatetimeIndexr`   r  N)r$   r    r   rv   r   r   rL  rV   ru   r6   rN  rg   rh   r   )r8   rN   r  r  ser3ser4r  	exp_indexr  
exp_index3rS  df4
exp_index4ri   s   &             r<   /test_frame_from_dict_with_mixed_tzaware_indexesVTestDataFrameConstructorIndexInference.test_frame_from_dict_with_mixed_tzaware_indexes
  s   q1eAhc*eAhcooe&<=eAhcool&CDeAh dCsD9:tDJJ//$tzz2BB&
	 	cii3dCsD9:tDJJ//$tzz2BB&

 	cii4dCsD9:tDJJ//$tzz2BB&

 	cii4dCsD9:tDJJ//$tzz2BB&

 	cii4 A]]9C00sD#tS$TBC 1]]9C00sD#tS$78 1]]9C00sD#tS$78 10	 1000000s$   M*M=N*M:	=N	N!	zkey_val, col_vals, col_typer  4utf8int8c                    \         P                  ! R 4      p\        P                  P	                  VP                  W$P                  VP                  4       \        WC4      ! 4       4      R7      4      p\        V^^./VR7      p\        ^\        P                  .^\        P                  ..VR7      pVP                  ^VP                  R,          P                  \        4      4       \         P"                  ! Wg4       R# )r  )r  r   NrH   )rg   importorskipr]  r;  ArrowExtensionArrayre   
dictionaryrF  getattrr   r2   rf   isetitemr  r5   ru   r6   r7   )r8   key_valcol_valscol_typepar  r{   r;   s   &&&&    r<   %test_dict_data_arrow_column_expansionLTestDataFrameConstructorIndexInference.test_dict_data_arrow_column_expansion'  s       +yy,,HHXMM"'')WR=R=T$UHV
 GaV,d;q"&&kArvv;7F!X]]4077?@
f/r?   r   N)r  r  r  r  r9  rB  rg   r"  r#  rQ  r  r  r  s   @r<   r4  r4  
  sW     	-*9X [[%3*f%A	
	0	0r?   r4  c                   &   a  ] tR tRt o R tRtV tR# ))TestDataFrameConstructorWithDtypeCoercioni:  c                j   \         P                  P                  ^4      P                  R4      pRp\        P
                  ! \        VR7      ;_uu_ 4        \        VRR7       RRR4       \        VP                  4       RR7      pVP                  R8H  P                  4       '       g   Q h\         P                  VR&   Rp\        P
                  ! \        VR7      ;_uu_ 4        \        VRR7       RRR4       \        P
                  ! \        VR7      ;_uu_ 4        \        V^ ,          RR7       RRR4       Rp\        P
                  ! \        VR7      ;_uu_ 4        \        V4      P                  R4       RRR4       \        P
                  ! \        VR7      ;_uu_ 4        \        V^ ,          4      P                  R4       RRR4       R#   + '       g   i     ELz; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R# ; i)	r   z)Trying to coerce float values to integersr`   rb   r/   Nr_   ro  r  )r2   r1  r2  r  rg   rh   r   r   roundr8  r  rf   r   r    r5   )r8   r9   ri   r:   s   &   r<   "test_floating_values_integer_dtypeLTestDataFrameConstructorWithDtypeCoercion.test_floating_values_integer_dtype;  sf    ii##A&66w?
 :]]:S11c& 2 syy{$/		T!&&(((( FFD	J]]-S99c& :]]-S993q6& : K]]-S99cN!!$' :]]-S993q6N!!$' :9# 211 :999 :9999s<   G$G(G;!H("H!G%	(G8	;H	H	!H2	r   N)r  r  r  r  rW  r  r  r  s   @r<   rT  rT  :  s     ( (r?   rT  c                     a  ] tR tRt o ]P
                  P                  RRR.4      R 4       t]P
                  P                  RRR.4      R	 4       tR
 t	R t
R tR tR tR tR tR tR t]P
                  P                  R]].4      R 4       tR tR tR tR t]P
                  P3                  ]'       * RR7      ]P
                  P                  RR. R"OR. R#OR. R$O/.4      R 4       4       tR tV tR!# )%&TestDataFrameConstructorWithDatetimeTZiZ  rE   ri  zdateutil/US/Easternc           
     j   \        R RRRR7      pVP                  V4      p\        RRRV/VR7      p\        RVP                  4      pVR,          P
                  V8X  g   Q hV Uu. uF  qfP                  4       NK  	  ppV Uu. uF  qfP                  4       NK  	  pp\        R	V/4      pW4R
&   WtR&   WR&   VP                  p	\        \        P
                  ! R4      \        VR7      \        P
                  ! R4      \        VRR7      .. ROR7      p
\        P                  ! W4       R# u upi u upi )2011/1/12012/1/1W-FRIrS   )r\  r>  r'  r   rs   rU   r  dr_tzdatetimes_naivedatetimes_with_tzdatetime64[ns]rj  r  r=  )rE   r>  N)r  r_  r`  ra  )r$   rv   r   r   r  r0   r  r8  r    r2   r6   rx   )r8   rE   r  r_  r:   tz_expectedr  r`  ra  r{   r;   s   &&         r<   *test_construction_preserves_tzaware_dtypesQTestDataFrameConstructorWithDatetimeTZ.test_construction_preserves_tzaware_dtypes[  s    
JW4Hr"UC/r:%dELL9#w}}+++ 9;;"++-;:?@%B--/%@bz"7 /"3)*2&)*2D1	 J
 	v0! <@s   &D+D0pydtTFc           	        Tp\        R VR7      pV'       d   VP                  4       pRp\        P                  ! \        VR7      ;_uu_ 4        \        ^ V./RR7       RRR4       Rp\        P                  ! \        VR7      ;_uu_ 4        \        ^ V/^ .RR7       RRR4       \        P                  ! \        VR7      ;_uu_ 4        \        V.RR7       RRR4       \        P                  ! \        VR7      ;_uu_ 4        \        \        P                  ! V.\        R7      RR7       RRR4       \        P                  ! \        VR7      ;_uu_ 4        \        V^ .^ .RR	7       RRR4       \        P                  ! \        VR7      ;_uu_ 4        \        \        V.4      .RR7       RRR4       \        P                  ! \        VR7      ;_uu_ 4        \        V..^ .RR
7       RRR4       R#   + '       g   i     EL; i  + '       g   i     ELx; i  + '       g   i     ELQ; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R# ; i)2019rj  sCannot convert timezone-aware data to timezone-naive dtype. Use pd.Series\(values\).dt.tz_localize\(None\) instead.r`   rb  r/   N/Cannot unbox tzaware Timestamp to tznaive dtyper  r  r  )r"   r  rg   rh   r   r   r   r2   re   ru   r    )r8   tz_aware_fixturerf  rE   r  ri   msg2s   &&&    r<   'test_constructor_data_aware_dtype_naiveNTestDataFrameConstructorWithDatetimeTZ.test_constructor_data_aware_dtype_naivex  s    v"%!!#BG 	 ]]:S11q2$i'78 2 A]]9D11q"gaS0@A 2 ]]:S11rd"23 2 ]]:S11bhht62:JK 2 ]]9D11baS8HI 2 ]]:S11vrd|n,<= 2 ]]:S11tfqc1AB 21' 211 211 211 211 21 21 211sT   G:HH")H6I
II0:H	H	"H3	6I	
I	I-	0J	c                   \        \        R ^RR7      RR7      p\        R^R7      p\        RVRV/4      pVR,          P                  '       g   Q R	4       hVR,          P                  R8X  g   Q h\
        P                  ! VR,          \        VRR7      4       \
        P                  ! VR,          \        VRR7      4       R
# )r  ri  rC   r   rt   20130110r|  r'  rs   zM8[ns, US/EasternN)r   r$   r   r0   rd   r6   rx   r    )r8   rz   r  r:   s   &   r<   test_from_dict5TestDataFrameConstructorWithDatetimeTZ.test_from_dict  s     Jz1FUS
A. S#r*+#w}}}111}#w||s"""
r#ws(=>
r#wr(<=r?   c                   \        R ^RRR7      p\        V4      p\        P                  ! VR,          \	        VRR7      4       \        \	        V4      4      p\        P                  ! VR,          \	        VRR7      4       \        R ^RR7      p\        V4      p\        P                  ! V^ ,          \	        V^ R7      4       \        \	        V4      4      p\        P                  ! V^ ,          \	        V^ R7      4       R# )r  ri  r   )rD   rE   rd   rt   rC   N)r$   r   r6   rx   r    )r8   r  r  s   &  r<   test_from_index6TestDataFrameConstructorWithDatetimeTZ.test_from_index  s    *aLuMo
s5z6$U+CDt%
s5z6$U+CD*aLAo
s1vvd';<t%
s1vvd';<r?   c                    \        R ^
R7      p\        WR7      p\        RRRV/VR7       \        RRRVP                  /VR7       R# )r6  r|  rU   r   r   r   N)r$   r    r   r   )r8   r  r5  s   &  r<   +test_frame_dict_constructor_datetime64_1680RTestDataFrameConstructorWithDatetimeTZ.test_frame_dict_constructor_datetime64_1680  sD    
B/2  	3sA&b13sAHH-R8r?   c                    \        R RRR7      p\        V4      p\        RRRV/VR7      pVR,          P                  4       P	                  4       '       g   Q hR# )	r\  r]  r^  r[  r'  r   rs   rU   N)r$   r    r   r%   r  )r8   r  r  r   s   &   r<   +test_frame_datetime64_mixed_index_ctor_1681RTestDataFrameConstructorWithDatetimeTZ.test_frame_datetime64_mixed_index_ctor_1681  sO    
JW=BZ sE3+26v{{}  """"r?   c           
         \        R ^RRRR7      p\        VR.R7      p\        R\        R RR7      \        RRR7      \        R	RR7      ./R
R7      p\        P                  ! W#4       R# )z20130101T10:00:00minri  rS   )r  rD   r\  rE   r>  
timestampsr   rj  z20130101T10:01:00z20130101T10:02:00zM8[ns, US/Eastern]r/   N)r$   r   r"   r6   r7   )r8   r  r{   r;   s   &   r<   test_frame_timeseries_columnCTestDataFrameConstructorWithDatetimeTZ.test_frame_timeseries_column  su    %quTX
 2~61lC1lC1lC '	
 	f/r?   c           	         R R.pR RRRR/RRRRRRR	//p\        V. ROVR
7      p\        RR\        P                  \        P                  3.V\        . RO4      R7      p\        P
                  ! W44       R# )NevadaOhior  333333@  333333@r  rH  333333?@r   r  N)r  r  i  )r  r  )r  r  )r   r2   rf   r   r6   r7   )r8   r   popr{   r;   s   &    r<   test_nested_dict_constructionDTestDataFrameConstructorWithDatetimeTZ.test_nested_dict_construction  s    V$tS$,T3c45
 3&8'Jbffbff%56*+

 	f/r?   c                j   \        R ^RR7      pVP                  P                  \        4      P	                  ^R4      p\        V4      pVP                  R8X  g   Q hVP                  VP                  8H  P                  4       '       g   Q hW18H  P                  4       P                  4       '       g   Q hR# )z2016-04-05 04:30r  rC   NrJ  r  )
r$   rJ   r5   ru   r4   r   r  r8  r0   r  )r8   rN   r   r:   s   &   r<   test_from_tzaware_object_arrayETestDataFrameConstructorWithDatetimeTZ.test_from_tzaware_object_array  s    +Q5Ayy'//26t_xx6!!!		SYY&++----	 $$&&&&r?   c                   \         P                  ! \        R 4      \        R4      \        R4      .\        RRR7      \        P                  \        RRR7      .\        RRR7      \        P                  \        R	RR7      ..\
        R
7      P                  p\        V. ROR7      p. ROpVP                  V8H  P                  4       '       g   Q hR# )z2013-01-01 00:00:00z2013-01-02 00:00:00z2013-01-03 00:00:00z2013-01-01 00:00:00-0500ri  rj  z2013-01-03 00:00:00-0500z2013-01-01 00:00:00+0100CETz2013-01-03 00:00:00+0100r/   r   Nr  )r  r  zdatetime64[us, CET])
r2   re   r"   r]  r   ru   r,  r   r8  r  )r8   r9   rT  expected_dtypess   &   r<   $test_from_tzaware_mixed_object_arrayKTestDataFrameConstructorWithDatetimeTZ.test_from_tzaware_mixed_object_array  s    hh 343434 8\JFF8\J 8UCFF8UC" %
& !' 	( _5

 

o-224444r?   c                    \         P                  ! ^
4      P                  R4      p\        VRR7      p\        V4      P	                  R4      p\
        P                  ! W#4       R# )r  zdatetime64[ns, UTC]r/   N)r   r   )r2   r3   r4   r   r5   r6   r7   )r8   
array_dim2r:   r;   s   &   r<   test_from_2d_ndarray_with_dtypeFTestDataFrameConstructorWithDatetimeTZ.test_from_2d_ndarray_with_dtype  sK    YYr]**62
z)>?Z(//0EF
b+r?   r9  c                l   V! 0 Rm4      pRVP                    R2p\        P                  ! \        VR7      ;_uu_ 4        \	        RV/4       RRR4       \        P                  ! \        VR7      ;_uu_ 4        \        V4       RRR4       R#   + '       g   i     LJ; i  + '       g   i     R# ; i)rI   'z' type is unorderedr`   r   N>   rI   r   r  )r  rg   rh   r   r   r    )r8   r9  r   ri   s   &&  r<   !test_construction_from_set_raisesHTestDataFrameConstructorWithDatetimeTZ.test_construction_from_set_raises  sy     Y#,,23]]9C00sFm$ 1 ]]9C006N 10 10 100s   B9B"B	"B3	c                6   \         P                  ! ^ ^RR7      P                  ^^4      p\        V4      p\        ;QJ d0    R VP
                  P                   4       F  '       d   K   RM%	  RM!! R VP
                  P                   4       4      '       g   Q hR# )r   rb  r/   c              3   V   "   T F  p\        VP                  \        4      x  K!  	  R # 5ir   )r   r   r&   )r   blocks   & r<   r   eTestDataFrameConstructorWithDatetimeTZ.test_construction_from_ndarray_datetimelike.<locals>.<genexpr>'  s     Wu:ellM::s   ')FTN)r2   r3   r4   r   r  rL   rM   r8   r9   r:   s   &  r<   +test_construction_from_ndarray_datetimelikeRTestDataFrameConstructorWithDatetimeTZ.test_construction_from_ndarray_datetimelike"  sd     ii2%56>>q!Ds^sWWsssWWWWWWr?   c                   \         P                  P                  ^4      P                  R	4      p\        P
                  ! R.4      P                  pRp\        P                  ! \        VR7      ;_uu_ 4        \        VR.VR7       RRR4       \        P
                  ! . R
O4      p\        P                  ! \        VR7      ;_uu_ 4        \        VRR.R7       RRR4       R#   + '       g   i     Lf; i  + '       g   i     R# ; i)r   r   z'len\(arrays\) must match len\(columns\)r`   r   r  Nr,  r   r  )r   r   r  )r2   r1  r2  r  r]  re   r0   rg   rh   r   r   )r8   r9   r0   ri   arr2s   &    r<   >test_construction_from_ndarray_with_eadtype_mismatched_columnseTestDataFrameConstructorWithDatetimeTZ.test_construction_from_ndarray_with_eadtype_mismatched_columns)  s    ii##A&66w?#%%8]]:S11cE7%8 2 xx(]]:S11dUEN3 21	 21 211s   6C$
C7$C4	7D	c                T   . R	O. R
O.p\         P                  ! \        RR7      ;_uu_ 4        \        VRR0R7       RRR4       \         P                  ! \        RR7      ;_uu_ 4        \        V0 RmR7       RRR4       R#   + '       g   i     LN; i  + '       g   i     R# ; i)rI   zindex cannot be a setr`   r   r   rU   Nzcolumns cannot be a setr   r  r  >   r   r   r   r  r  s   & r<   "test_columns_indexes_raise_on_setsITestDataFrameConstructorWithDatetimeTZ.test_columns_indexes_raise_on_sets4  sk    9%]]:-DEEd3*- F]]:-FGGdO4 HG FEGGGs   B)BB	B'	c                    \        R \        P                  /R .\        ^4      R7      p\        R \	        \        P                  \        P                  .4      /4      p\
        P                  ! W4       R# )r   r  N)r   r]  r   r   r    r6   r7   r  s   &  r<   %test_from_dict_with_columns_na_scalarLTestDataFrameConstructorWithDatetimeTZ.test_from_dict_with_columns_na_scalar<  sM    C=3%uQxHc6266266*:#;<=
f/r?   z/StringDType only available in numpy 2 and above)reasonr   r   r   r   c                   ^ RI Hp \        P                  ! VR,          V! 4       R7      VR&   \	        V4      pVR,          P
                  \        P                  8X  g   Q hVR,          VR,          8H  P                  4       '       g   Q hR# )r   )StringDTyper   r/   N)numpy.dtypesr  r2   re   r   r0   r   r  )r8   r   r  rT  s   &&  r<    test_np_string_array_object_castGTestDataFrameConstructorWithDatetimeTZ.test_np_string_array_object_castB  sf     	-HHT#Ykm<S	o3x~~+++CDI%**,,,,r?   r   Nr   )r   r   r   rI  )r  r  r  r  rg   r"  r#  rd  rm  rq  rt  rw  rz  r  r  r  r  r  set	frozensetr  r  r  r  r  skipifr   r  r  r  r  s   @r<   rZ  rZ  Z  s)    [[TL2G#HI1 J18 [[VdE]3C 4CB>=9#0$0'5>, [[US)$45 6X	450 [[#T   [[/3oN	
--r?   rZ  c                 z    \        V \        4      '       d   V P                  ^ ,          # V P                  R,          # )r   r  )r   r    r  r  s   &r<   get1r  T  s+    #vxx{xx~r?   c                   z  a  ] tR tRt o ]P
                  ! ]]R.R7      R 4       t]P
                  R 4       t	]P                  P                  RRR.4      R	 4       tR
 tR tR t]P                  P                  R]P"                  ]P$                  .4      R 4       t]P                  P                  R]]P"                  .4      R 4       tR t]P                  P                  R]]P$                  .4      R 4       t]P                  P                  R]P"                  ]P$                  .4      R 4       tR tRtV tR# )TestFromScalari[  Nparamsc                    VP                   # r   paramr8   requests   &&r<   boxTestFromScalar.box\      }}r?   c                   aa R \        ^4      /oS\        J d   R.SR&   Vf   \        P                  ! S3/ SB # V\        J d   S\
        J d   VV3R l# VV3R l# S\
        J d   VV3R l# VV3R l# )rV   r'  r   c                 "   < S! ^ V ^V /3/ SBVB # r   r   r   kwargsextrar   s   &,r<   r   ,TestFromScalar.constructor.<locals>.<lambda>k  s%    ?1aL,$),-3,r?   c                    < S! R V /3/ SBVB # r'  r   r  s   &,r<   r   r  o  s    ?C8+Wu+WPV+Wr?   c                    < S! W .3/ SBVB # r   r   r  s   &,r<   r   r  q  s    v'Q'Q&'Qr?   c                     < S! R W ./3/ SBVB # r  r   r  s   &,r<   r   r  s  s    aV}'X'XQW'Xr?   )r   r   	functoolspartialr7  r    )r8   r   r  r  s   &f&@r<   r   TestFromScalar.constructor`  sv    %(#i' #uE);$$_>>>D[&(  XW&QQXXr?   r0   r   r   c                    V! \         P                  VR 7      p\        P                  ! VP                  V8H  4      '       g   Q h\        P                  ! VP                  4       4      '       g   Q hR# r  )r]  r   r2   r  r8  r%   )r8   r0   r   r   s   &&& r<   test_from_nat_scalar#TestFromScalar.test_from_nat_scalaru  sK    "&&.vvcjjE)****vvchhj!!!!r?   c                T    \        ^4      pV! VRR7      p\        V4      V8X  g   Q hR# )rI   r   r/   Nr!   r  )r8   r   rV  r   s   &&  r<   *test_from_timedelta_scalar_preserves_nanos9TestFromScalar.test_from_timedelta_scalar_preserves_nanos{  s'    q\"H-CyBr?   c                b    V\        ^4      ,           pV! VRR7      p\        V4      V8X  g   Q hR# )rI   r   r/   Nr  )r8   r   fixed_now_tsr  r   s   &&&  r<   *test_from_timestamp_scalar_preserves_nanos9TestFromScalar.test_from_timestamp_scalar_preserves_nanos  s,    IaL("H-CyBr?   c                    \        ^4      pVP                  4       pV! V\        R7      p\        \	        V4      \
        P                  4      '       g   Q hR# )rI   r/   N)r!   to_timedelta64ru   r   r  r2   rI  )r8   r   rV  td64r   s   &&   r<   #test_from_timedelta64_scalar_object2TestFromScalar.test_from_timedelta64_scalar_object  s@    q\  "$f-$s)R^^4444r?   r  c                   V! R R4      p\         P                  R\         P                  R/V,          pV\         P                  J d   RpMRpRP                  RV.4      p\        P
                  ! \        VR7      ;_uu_ 4        V! W4R	7       R
R
R
4       V! ^R4      p\        P
                  ! \        VR7      ;_uu_ 4        V! W4R	7       R
R
R
4       R
#   + '       g   i     LQ; i  + '       g   i     R
# ; i)r   rS   r   r   r   z:<class 'numpy.timedelta64'> is not convertible to datetime|r  r`   r/   N)r2   r   rI  joinrg   rh   r   )r8   r   r  r  r0   msg1ri   s   &&&    r<   (test_from_scalar_datetimelike_mismatched7TestFromScalar.test_from_scalar_datetimelike_mismatched  s    UD!"..(CCH"--RDODhht,-]]9C00, 1 Q]]9C00, 10	 10 100s   
C
C)C&	)C:	c                D   \        R ^^4      pRpV\        P                  J d   \        P                  ! VR4      pRpV! V4      p\        V4      p	\        P
                  ! V4      p
\        V	4      \        J g   Q hV	P                  P                  V8X  g   Q hW8X  g   Q hR# )'  rm   r  r  N)
r   r2   r   r  r6   r  r  r"   asm8r0   )r8   r   r  r  r  r   r  rT  r{   itemr0   s   &&&&&&     r<   #test_from_out_of_bounds_ns_datetime2TestFromScalar.test_from_out_of_bounds_ns_datetime  s    
 $1%	"--]]63/FIV$F|V$DzY&&&yy)+++!!!r?   c                6   \         P                  ! \         P                  ! \         P                  4      P                  R 4      pV! V4      p\        V4      p\        V4      \         P                  J g   Q h\        P                  ! V4      pV\        8X  g   Q hR# r  N)
r2   r   iinfor  maxr  r  r6   r  ru   )r8   r   r  r{   r  r0   s   &&    r<   test_out_of_s_bounds_datetime64.TestFromScalar.test_out_of_s_bounds_datetime64  sh    rxx155s;V$F|DzR]]***V$r?   c                h   \        R ^^4      \        R^^4      ,
          pRpV\        P                  J d   \        P                  ! VR4      pRpV! V4      p\        V4      p\        P
                  ! V4      p	\        V4      \        J g   Q hVP                  P                  V8X  g   Q hW8X  g   Q hR# )r  i  rM  r  rJ  N)
r   r2   rI  r  r6   r  r  r!   r  r0   )
r8   r   r  r  r   r  rT  r{   r  r0   s
   &&&&&     r<   $test_from_out_of_bounds_ns_timedelta3TestFromScalar.test_from_out_of_bounds_ns_timedelta  s     $1%q!(<<	".. ^^FC0FIV$F|V$DzY&&&yy)+++!!!r?   c                    V! \         P                  ! \         P                  4      P                  R 4      pV! V4      p\	        V4      p\        V4      VJ g   Q h\        P                  ! V4      pV\        8X  g   Q hR# r  )	r2   r  r  r  r  r  r6   r  ru   )r8   r   r  r  r{   r  r0   s   &&&    r<    test_out_of_s_bounds_timedelta64/TestFromScalar.test_out_of_s_bounds_timedelta64  s`    RXXbhh'++S1V$F|DzS   V$r?   c                   R p\        RVR7      pVe   V\        J d   V\        J d
   Rp\        pMRp\        p\
        P                  ! WvR7      ;_uu_ 4        V! VRR7       RRR4       R#   + '       g   i     R# ; i)	ri  rh  rj  Nrj  ri  r`   r   r/   )r"   r   r7  r   r   rg   rh   )r8   r   r  r   rE   r  ri   errs   &&&&    r<   test_tzaware_data_tznaive_dtype.TestFromScalar.test_tzaware_data_tznaive_dtype  si    v"%;?i7C4KCCCK  C]]3**(+ +***s   A--A>	r   )r  r  r  r  rg   fixturerL  r7  r  r   r"  r#  r  r  r  r  r2   r   rI  r  r   r  r  r   r  r  r  r  r  r  s   @r<   r  r  [  sL    ^^D$-. / ^^Y Y( [[Wx&:;" <"
5 [[UR]]BNN$CD- E-" [[UXr}}$=>" ?"& [[UY$?@" A"" [[UR]]BNN$CD E, ,r?   r  c                      a  ] tR tRt o ]P
                  ! RR.R7      R 4       t]P
                  R 4       tR tR t	R	 t
R
 tR tRtV tR# )TestAllowNonNanoi  TFr  c                    VP                   # r   r  r  s   &&r<   as_tdTestAllowNonNano.as_td  r  r?   c                8   \         P                  ! ^4      P                  \         P                  4      P	                  R4      pV'       d1   W"^ ,          ,
          p\
        P                  ! W"P                  R7      # \        P                  ! W"P                  R7      # )r   r  r/   )	r2   r3   r5   r  r   r*   _simple_newr0   r&   )r8   r  r   s   && r<   r9   TestAllowNonNano.arr  sb    1$$RXX.33G<Qi'F!--fLLII ,,V<<HHr?   c                V    \        V4      pVP                  VP                  8X  g   Q hR # r   )r   r0   )r8   r9   rz   s   && r<   test_index_allow_non_nano*TestAllowNonNano.test_index_allow_non_nano  s!    CjyyCII%%%r?   c                    V'       d   \         P                  ! V4      pM\        V4      pVP                  VP                  8X  g   Q hR # r   )r]  TimedeltaIndexr   r0   )r8   r9   r  rz   s   &&& r<   test_dti_tdi_allow_non_nano,TestAllowNonNano.test_dti_tdi_allow_non_nano  s5    ##C(C$CyyCII%%%r?   c                V    \        V4      pVP                  VP                  8X  g   Q hR # r   )r    r0   )r8   r9   r  s   && r<   test_series_allow_non_nano+TestAllowNonNano.test_series_allow_non_nano  s!    SkyyCII%%%r?   c                d    \        V4      pVP                  ^ ,          VP                  8X  g   Q hR# r   r   r8  r0   r  s   && r<   test_frame_allow_non_nano*TestAllowNonNano.test_frame_allow_non_nano
  s%    s^yy|syy(((r?   c                h    \        ^ V/4      pVP                  ^ ,          VP                  8X  g   Q hR# r   r  r  s   && r<   #test_frame_from_dict_allow_non_nano4TestAllowNonNano.test_frame_from_dict_allow_non_nano  s*    3x yy|syy(((r?   r   N)r  r  r  r  rg   r  r  r9   r  r  r  r  r  r  r  r  s   @r<   r  r    s^      ^^D%=) * ^^I I&&&)) )r?   r  )float16float32r   )r!  r$  r%  rd  rF  int16r  r  )Fre   collectionsr   r   r   r   collections.abcr   dataclassesr	   r   r
   r   r  rx  r  numpyr2   r   numpy.mar   rg   pandas._libsr   pandas.compat.numpyr   pandas.errorsr   pandas.core.dtypes.commonr   pandas.core.dtypes.dtypesr   r   r   r   pandasr]  r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   pandas._testing_testingr6   pandas.arraysr&   r'   r(   r)   r*   r3  r0  r,   r4  rT  rZ  r  r  r  r   r?   r<   <module>r(     s      % & 
  	       . , 6      "   7 	 `*, `*,FUH0 H0V( (@w- w-tK, K,^&) &)r?   