+
    xȇiI              
          ^ RI HtHt ^ RIHtHt ^ RIt^ RIt^ RIH	t	H
t
HtHtHtHtHtHtHt ^ RIHt  ! R R4      t]P,                  P/                  R]! R^^4      ]! ^4      ]! R	4      ]! ^^4      .4      R
 4       tR# )    )OrderedDictdefaultdict)datetimetimezoneN)	NA	DataFrameIndexInterval
MultiIndexPeriodSeries	Timedelta	Timestampc                   
  a  ] tR t^t o R tR tR t]P                  P                  R. RTO4      R 4       t
]P                  P                  R]]! ]4      ].4      R 4       t]P                  P                  R]]. .4      R	 4       tR
 t]P                  P%                  R4      ]P                  P                  RRR^^.R^^./3RR^ ^^^/R^ ^^^//3.4      R 4       4       t]P                  P                  RRR 3RR 3RR 3RR 3RR 3.4      R 4       tR t]P                  P                  R]^ R^RR /^R^RR!/^R^RR"//3]]! ^ R^RR /3^R^RR!/3^R^RR"/3.4      3]! ]4      ]! ]^ R^RR /^R^RR!/^R^RR"//4      3.4      R# 4       tR$ tR% t]P                  P                  R&. RUO]3]! R(^^4      ]! R)^^4      ]! R*^^4      .].. RVO].. RWO].. RXO].34      R+ 4       t]P                  P                  R,] PB                  ! ^4      ].] PD                  ! RY4      ].] PF                  ! R-4      ].] PH                  ! R'4      ].] PJ                  ! R.4      ].34      R/ 4       t&R0 t']P                  P                  RR1](! R2R3.4      ](! R2R3.R4R57      ])PT                  ! RZR[.4      ])PT                  ! RZR[.R9R:.R;7      .4      ]P                  P                  R<R=R>.](! R=R>.4      ](! R=R>.R?R57      ])PT                  ! R\R].4      ])PT                  ! R\R].R@RA.R;7      .4      RB 4       4       t+]P                  P                  R. R^O4      ]P                  P                  RDR6] PD                  ! ^4      ^] PD                  ! ^4      .R7] PF                  ! R 4      R!] PF                  ! R"4      .R8] PF                  ! R 4      ^] PD                  ! ^4      .R] PF                  ! R 4      R6] PD                  ! ^4      .RE] PF                  ! R 4      R6.] PD                  ! ^4      .RF] PF                  ! R 4      R_] PD                  ! ^4      ./R6]]].R7]]].R8]]].R]]].RE]]].RF]],]./3R6. RWOR7. R`O/R6]]].R7]]]./3R6. RaOR7. RbO/R6]]].R7]]]./334      RG 4       4       t-]P                  P                  R. RcO4      RH 4       t.]P                  P                  RIRR<RJRK.RL^^.^^../3RCR<RJRK.RL^^.^^..RMR1./3.4      RN 4       t/]P                  P                  RIRR6^ ^^R1//3RR6^R1./3RR^ ^.R<R6.RL^.R1../3RCR^ ^.R<R6.RL^.R1..ROR1.RMR1./3RR6^/R6R1/.3R^ R6^/^R6R1//3.4      RP 4       t0RQ t1RR t2RSt3V t4R1# )dTestDataFrameToDictc                   \        R 4      p\        RW.RW./4      p\        RW.R^^./4      pRVRV/RVRV/.pRVR^/RVR^/.pVP                  RR7      V8X  g   Q hVP                  RR7      V8X  g   Q hR\        W.RR7      R\        W.RR7      /pR\        W.RR7      R\        ^^.RR7      /p\        P
                  ! VP                  RR7      V4       \        P
                  ! VP                  RR7      V4       R^ ^.RW.W..R	RR./pR^ ^.RV^.V^..R	RR./p	\        P
                  ! VP                  R
R7      V4       \        P
                  ! VP                  R
R7      V	4       R# )20130101ABrecordsorientnameseriesindexdatacolumnssplitN)r   r   to_dictr   tmassert_dict_equal)
selftsmp	test_datatest_data_mixedexpected_recordsexpected_records_mixedexpected_seriesexpected_series_mixedexpected_splitexpected_split_mixeds
   &         w/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/frame/methods/test_to_dict.pytest_to_dict_timestamp*TestDataFrameToDict.test_to_dict_timestamp   s   
 $sTL#|DE	#S4,aV$DE $T2S$T4JK#&c1"5T37J!K  	 26FFFF&&i&8<RRRR 3/3/

 3/AS)!

 	Y..h.?Q
##8#46K	

 aVd\D<0Sz
 aVdAYq	*Sz 
 	Y..g.>O
##7#35I	
    c                    \        R ^^.RRR./RR.R7      pRp\        P                  ! \        VR7      ;_uu_ 4        VP	                  RR	7       R
R
R
4       R
#   + '       g   i     R
# ; i)abg      ?g      ?r   r   z1DataFrame index must be unique for orient='index'matchr   r   Nr   pytestraises
ValueErrorr    r#   dfmsgs   &  r-   /test_to_dict_index_not_unique_with_index_orientCTestDataFrameToDict.test_to_dict_index_not_unique_with_index_orientI   sX     aVS3+6sCjIA]]:S11JJgJ& 2111s   AA,	c                    \        R ^ ^./4      pRp\        P                  ! \        VR7      ;_uu_ 4        VP	                  RR7       RRR4       R#   + '       g   i     R# ; i)r   z orient 'xinvalid' not understoodr5   xinvalidr   Nr7   r;   s   &  r-   test_to_dict_invalid_orient/TestDataFrameToDict.test_to_dict_invalid_orientQ   sG    aV}%0]]:S11JJjJ) 2111s   AA$	r   dc                    \        R ^ ^./4      p\        P                  ! \        RR7      ;_uu_ 4        VP	                  VR7       RRR4       R#   + '       g   i     R# ; i)r   znot understoodr5   r   Nr7   )r#   r   r<   s   && r-    test_to_dict_short_orient_raises4TestDataFrameToDict.test_to_dict_short_orient_raisesW   sE     aV}%]]:-=>>JJfJ% ?>>>s   AA"	mappingc           	        R R^R^/RRRRRRR//p\        V4      P                  VR7      pVP                  4        F4  w  rEVP                  4        F  w  rgWsV,          V,          8X  d   K  Q h	  K6  	  \        V4      P                  RVR7      pVP                  4        FD  w  rEVP                  4        F+  w  rgWsV,          \        V4      ^,
          ,          8X  d   K+  Q h	  KF  	  \        V4      P                  RVR7      pVP                  4        F4  w  rEVP                  4        F  w  rgWsV,          V,          8X  d   K  Q h	  K6  	  \        V4      P                  RVR7      pR	R R.R
. RORRR.RR.\        P
                  R../p\        P                  ! W84       \        V4      P                  RVR7      pR RRR/R RRR/R \        P
                  RR/.p	\        V\        4      '       g   Q h\        V4      ^8X  g   Q h\        W94       F  w  r\        P                  ! W4       K  	  \        V4      P                  R
4      pVP                  4        F4  w  rEVP                  4        F  w  rgWsV,          V,          8X  d   K  Q h	  K6  	  \        V4      pWP                  ^ ,          ,          VR&   VP                  R
4      pVP                  4       pWP                  ^ ,          ,          VR&   VP                  4        F4  w  rEVP                  4        F  w  rgWsV,          V,          8X  d   K  Q h	  K6  	  R# )r   12r   3intolistr   r   r   r   r         ?       @r   dupedN)rJ   rK   rL   )r   r    itemsintnpnanr!   r"   
isinstancerO   lenzipr   copy)r#   rH   r%   recons_datakvk2v2r+   r'   leftrightr<   	comp_datas   &&            r-   test_to_dict TestDataFrameToDict.test_to_dict^   s    33*C#sCc31OP	  	*222@OO%DA'')^B//// $ &  	*2262HOO%DA'')^CGaK8888 $ &  	*228'2JOO%DA'')^B//// $ &  	*2272ISz_c3Z#sbffc];

 	[9	*22972K#sC #sC "&&#s#

 +t,,,,;1$$${=KD  - >  	*227;OO%DA'')_Q//// $ & y!A'7jj)NN$	&zz!}5	'OO%DA'')_Q//// $ &r0   c                @   \        \        P                  P                  ^4      P	                  R4      4      pRP                  RR.4      p\        P                  ! \        VR7      ;_uu_ 4        VP                  VR7       RRR4       R#   + '       g   i     R# ; i)   |z unsupported type: <class 'list'>z1to_dict\(\) only accepts initialized defaultdictsr5   rM   N)   rh   )
r   rU   randomdefault_rngstandard_normaljoinr8   r9   	TypeErrorr    )r#   rH   r<   r=   s   &&  r-   test_to_dict_errors'TestDataFrameToDict.test_to_dict_errors   sq     ryy,,Q/??GHhh2D
 ]]9C00JJGJ$ 1000s   /BB	c                    \        . RO.. ROR7      p\        P                  ! \        RR7      ;_uu_ 4        VP	                  4        RRR4       R#   + '       g   i     R# ; i)   r   zcolumns will be omittedr5   Nrq   rf   rh   )r2   r2   r3   )r   r!   assert_produces_warningUserWarningr    )r#   r<   s   & r-   test_to_dict_not_unique_warning3TestDataFrameToDict.test_to_dict_not_unique_warning   s?     	{O<'';TUUJJL VUUUs   AA#	zignore::UserWarningzorient,expectedrO   r   r   dictc                b    \        . RO. RO.. ROR7      pVP                  V4      pWB8X  g   Q hR# )rq   rr   Nrs   )         )r   r   r   r   r    r#   r   expectedr<   results   &&&  r-   test_to_dict_not_unique+TestDataFrameToDict.test_to_dict_not_unique   s/     	9-GF#!!!r0   zorient,item_getterc                     W,          V,          # N rD   colidxs   &&&r-   <lambda>TestDataFrameToDict.<lambda>   
    r0   r   c                     W,          V,          # r   r   r   s   &&&r-   r   r      s
    AF3Kr0   c                     W,          V,          # r   r   r   s   &&&r-   r   r      r   r0   r   c                \    V R ,          V,          V R,          P                  V4      ,          # )r   r   r4   r   s   &&&r-   r   r      s     !F)C.99K9KC9P*Qr0   r   c                     W,          V,          # r   r   r   s   &&&r-   r   r      s
    !&+r0   c                    \        R ^^.RRR./4      pVP                  VR7      p\        V! VR ^ 4      \        4      '       g   Q h\        V! VR^ 4      \        4      '       g   Q hR# )r2   r3   g?g?r   N)r   r    rW   rT   float)r#   r   item_getterr<   r   s   &&&  r-   test_to_dict_box_scalars,TestDataFrameToDict.test_to_dict_box_scalars   sg     aVS3*566*+fc15s;;;;+fc15u====r0   c                   \        R ^^^^5^ R\        P                  R7      3\        R ^^^^^R\        P                  R7      3.p\        \	        V4      R.R7      pVP                  RR7      pR\        R\        P                  R	7      /R\        R
\        P                  R	7      /.p\        P                  ! V^ ,          V^ ,          4       \        P                  ! V^,          V^,          4       R# )i  iYX )tzinfoir  rD   rr   r   r   z2017-11-18 21:53:00.219225+0000)tzz2017-11-18 22:06:30.061810+0000N)	r   r   utcr   rO   r    r   r!   r"   )r#   r   r<   r   r   s   &    r-   test_to_dict_tz#TestDataFrameToDict.test_to_dict_tz   s     dBBAvhllKMdBB2uX\\JL
 tDzC519-)=(,,OP)=(,,OP
 	VAY4
VAY4r0   zinto, expectedint_col	float_colrP   rQ         @c                   \        R . ROR. RO/4      pVP                  RVR7      pR R.p\         P                  ! VRR7      V,          p\         P                  ! VRR7      V,          p\        P                  ! WB4       R# )r   r   r   )r   rN   r   Nrs   rP   rQ   r   )r   r    	from_dictr!   assert_frame_equal)r#   rN   r   r<   r   colss   &&&   r-   test_to_dict_index_dtypes-TestDataFrameToDict.test_to_dict_index_dtypes   sp    N 	9k?KL76;'$$VG<TB&&x@F
f/r0   c                   \        \        ^4       Uu/ uF  p\        V4      V.bK  	  up4      p\        VP	                  R4      ^ ,          P                  4       4      p\        VP                  4      pW48X  g   Q hR# u upi )r{   r   N)r   rangestrsetr    keysr   r#   ir<   r   r   s   &    r-   test_to_dict_numeric_names.TestDataFrameToDict.test_to_dict_numeric_names  sh    U1X6XAX67RZZ	*1-2245rzz?!!! 7s   A>c                    \        \        R 4       Uu/ uF  pRVR 2V.bK  	  up4      pVP                  R4      ^ ,          p\        R 4       Uu/ uF
  pRVR 2VbK  	  ppW48X  g   Q hR# u upi u upi )   A_rD   r   N)r   r   r    r   s   &    r-   test_to_dict_wide%TestDataFrameToDict.test_to_dict_wide  sy    5:>:a2aUqc):>?I&q)+0:6:ab1JM:6!!! ?6s   A,A1z
data,dtypeTi  i    c                   a \        R V/4      pVP                  RR7      p\        ;QJ d    V3R lV 4       F  '       d   K   RM	  RM! V3R lV 4       4      '       g   Q hR# )r2   r   r   c              3   L   <"   T F  p\        VR ,          4      SJ x  K  	  R# 5i)r2   N)type).0recorddtypes   & r-   	<genexpr>@TestDataFrameToDict.test_to_dict_orient_dtype.<locals>.<genexpr>6  s     >A&4s$-As   !$FTN)r   r    all)r#   r   r   r<   rD   s   &&f  r-   test_to_dict_orient_dtype-TestDataFrameToDict.test_to_dict_orient_dtype   sJ    ( T{#JJiJ(s>A>sss>A>>>>>r0   zdata,expected_dtype皙?z
2005-02-25c                    \        R V/^ .R7      pVP                  RR7      p\        V^ ,          R ,          4      pWRJ g   Q hR# )r2   r4   r   r   N)r   r    r   )r#   r   expected_dtyper<   rD   r   s   &&&   r-   ,test_to_dict_scalar_constructor_orient_dtype@TestDataFrameToDict.test_to_dict_scalar_constructor_orient_dtype8  sC     T{1#.JJiJ(ad3i'''r0   c                    \        R R.RR./4      pVP                  4       P                  R4      pR^ R RRR/.pW#8X  g   Q hR# )r2   rP   r3   g      "@r   r   N)r   reset_indexr    r#   r<   r   r   s   &   r-    test_to_dict_mixed_numeric_frame4TestDataFrameToDict.test_to_dict_mixed_numeric_frameJ  sQ    cUC#/0!)))4ac345!!!r0   Naabbccr   r2   r3   cn1n2)namesr   xyzz1z2c                    \         P                  ! ^^.^^..VVR7      p\         P                  ! VP                  RR7      RR7      p\        P
                  ! W44       R# )rq   )r   r   tightr   N)r   from_recordsr   r    r!   r   )r#   r   r   r<   	roundtrips   &&&  r-   test_to_dict_orient_tight-TestDataFrameToDict.test_to_dict_orient_tightQ  sW    * ##VaV

 ''

'
(B7S	
b,r0   r   zdata,expected_typesefc                  a	 \        V4      pVP                  V4      o	VR 8X  d   R S	P                  4        4       pMrVR8X  d   R S	P                  4        4       pMSVR
9   d   V	3R lS	R,           4       pM8VR8X  d   R \        S	4       4       pMVR8X  d   R S	P                  4        4       pX F:  w  rgpWV,          V,          8X  g   Q h\	        V4      W7,          V,          J d   K:  Q h	  R	# )rx   c              3   `   "   T F$  w  rVP                  4        F  w  r4W1V3x  K  	  K&  	  R # 5ir   rS   )r   keyindex_value_mapr   values   &    r-   r   HTestDataFrameToDict.test_to_dict_returns_native_types.<locals>.<genexpr>  s6      ",:(C / 5 5 7HA  7  ,:   ,.rO   c              3   V   "   T F  w  r\        V4       F  w  r4W1V3x  K  	  K!  	  R # 5ir   	enumerate)r   r   valuesr   r   s   &    r-   r   r     s1      "#1KC )& 1HA  1  #1s   ')c              3      <"   T F9  p\        SR ,          4       F   w  r#WSR,          V,          V,          3x  K"  	  K;  	  R# 5i)r   r   Nr   )r   r   jr   r   s   &   r-   r   r     sD      "(A'y(9:FA *1-.: /(s   AAr   r   c              3   `   "   T F$  w  rVP                  4        F  w  r4WV3x  K  	  K&  	  R # 5ir   r   r   r   r   r   r   s   &    r-   r   r     s2      "!2IA"(,,.JC "0  !2r   c              3   `   "   T F$  w  rVP                  4        F  w  r4WV3x  K  	  K&  	  R # 5ir   r   r   s   &    r-   r   r     s2      "!/IA"(,,.JC "0  !/r   N>   r   r   )r   r    rS   r   r   )
r#   r   r   expected_typesr<   assertion_iteratorr   r   r   r   s
   &&&&     @r-   !test_to_dict_returns_native_types5TestDataFrameToDict.test_to_dict_returns_native_typeso  s    d t_F#V",2LLN"
 v"#)<<>"
 ))""
 y "!*6!2"
 w"!'" 0MAEIaL(((;."5a"8888 0r0   c                    \        R ^^.R^^./RR.R7      pRp\        P                  ! \        VR7      ;_uu_ 4        VP	                  VRR7       R	R	R	4       R	#   + '       g   i     R	# ; i)
col1col2row1row2r4   z?'index=False' is only valid when 'orient' is 'split' or 'tight'r5   Fr   r   Nr7   )r#   r   r<   r=   s   &&  r-   test_to_dict_index_false_error2TestDataFrameToDict.test_to_dict_index_false_error  s[     AA7?OPO]]:S11JJfEJ2 2111s   AA-	zorient, expectedr   r   r   column_namesc                    \        R ^^.R^^./RR.R7      pVP                  VRR7      p\        P                  ! WB4       R# )r   r   r   r   r4   Fr   N)r   r    r!   r"   r~   s   &&&  r-   test_to_dict_index_false,TestDataFrameToDict.test_to_dict_index_false  sF      AA7?OP67
V.r0   index_namesc                d    \        R ^\        ./RR7      pVP                  VR7      pWB8X  g   Q hR# )r2   Int64r   r   N)r   r   r    r~   s   &&&  r-   test_to_dict_na_to_none+TestDataFrameToDict.test_to_dict_na_to_none  s4    , aW~W56*!!!r0   c                ^   \        R \        ^^.RR7      R^/4      pVP                  RR7      p\        V^ ,          R ,          \        4      '       g   Q h\        R \        ^\
        .RR7      R^/4      pVP                  RR7      p\        V^ ,          R ,          \        4      '       g   Q hR# )r2   r   r  r   r   r   N)r   r   r    rW   rT   r   )r#   r<   r   s   &  r-   !test_to_dict_masked_native_python5TestDataFrameToDict.test_to_dict_masked_native_python  s    VQF':CCD9-&)C.#....VQG7;S!DE9-&)C.#....r0   c           
        \        ^^.^^.^^..RR.R7      p\        P                  ! R4      ;_uu_ 4        VP                  RR7      pRRR4       R. RORRR.R^^.^^.^^..R	R.R
R./pXV8X  g   Q hR#   + '       g   i     L6; i)rq   r   rr   Nr   r   r   r   r   r   r   )r   rq   rf   )r   r!   rt   r    r   s   &   r-   3test_to_dict_tight_no_warning_with_duplicate_columnGTestDataFrameToDict.test_to_dict_tight_no_warning_with_duplicate_column  s    AAA/#sD''--ZZwZ/F . YSzaVaVaV,D6TF
 !!! .-s   A88B	r   )rD   lrspsr   )TTFr   rs   )XYZi)r2   r3   )r2   r   )r   rq   )r   rf   )rx   rO   r   r   r   r   )r2   )r   g@ffffff
@)rq   hellorh   )r   worldr  )rx   rO   r   r   r   )5__name__
__module____qualname____firstlineno__r.   r>   rB   r8   markparametrizerF   rx   r   rO   r   rc   rn   rv   filterwarningsr   r   r   r   r   r   boolr   r   r   rT   r   r   rU   uint64int64float64bool_
datetime64r   r   r	   r   from_tuplesr   tupler   r   r   r  r  r  __static_attributes____classdictcell__)__classdict__s   @r-   r   r      s    +
Z'* [[X'FG& H& [[Y{4/@+(NO90 P90v [[Y{B(?@
% A
% [[ 56[[cAq63A/0cAq!Q<q!Ql;<	
" 7" [[457845QR56	
	>	>5" [[ 	1k37	1k37	1k37 Y;<=Y;<=Y;<=	 D!Iq+s;Iq+s;Iq+s;
'	
!D0E!D0"" [[ $' T1a(T1a(T1a(
  e$c"	
"?#"? [[YYq\3XXb\3ZZ_e$XXd^T"]]<()4	
	(	(" [[4,4,T*""J
#;<""J
#;D$<P	
	 [[#J3*3*3'""Hh#78""Hh#7d|L	
	-		(- [[> [[ "((1+q"((1+6"**S/3

3@"**S/1bhhqk:"**S/3<"**S/C5"((1+>"**S/6288A;? #sC%.%.%c*%s+%,( 
 #sC%.	 ,
 #sC%e,	;'	
*V&9W*	^&9P [[X'UV3 W3 [[y66"2FaVaV<LMN/aVaV,"TF
	
// [[cAq!T?+,cAt9%&wA	C5&A3-PQaVuaS4&M!D6"TF	 #qC;/0q3(AT{34	
(")("/" "r0   r   valr   2020c                 `    \        R V ./4      pVP                  RR7      pR V ./pW#8X  g   Q hR# )r2   rO   r   Nr}   )r&  r<   r   r   s   &   r-   test_to_dict_list_pd_scalarsr)    s;    
 
C#<	 BZZvZ&FcU|Hr0   )collectionsr   r   r   r   numpyrU   r8   pandasr   r   r	   r
   r   r   r   r   r   pandas._testing_testingr!   r   r  r  r)  r   r0   r-   <module>r/     s   
  
 
 
 w" w"t 	IdAq!9Q<!QPr0   