+
    xȇi~                         ^ RI t ^ RIt^ RIt^ RIHtHtHtHt ^ RI	H
t ^ RIHt ]P                  R 4       t]P                  R 4       t]P                  R 4       t ! R R4      t ! R	 R
4      tR# )    N)	DataFrameIndexSeriesjson_normalizenested_to_recordc                      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RRRRRRRR/./RRRRRRR/RRRR/././.# )countryUSAstatesname
CaliforniacitiesSan Franciscopop90  Los Angeles:0  OhioColumbus  	Cleveland  GermanyBayernMunich;0  Nordrhein-WestfalenDuesseldorf  Koeln   r#       s/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/io/json/test_normalize.pydeep_nestedr&      s    
 uL%?u= FUD9eT:	
( y8vx.N-OP1t<%6		
)! !r$   c            	      d    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RR/.R	R
R/RRRR/.# )countiesr   Dade
populationr   Broward@  
Palm Beach`  infogovernor
Rick Scott	shortnameFLstateFloridaSummitr   Cuyahoga9  John KasichOHr   r#   r#   r$   r%   
state_datar;   8   s     u5L%8|U;
 Z.Y		
 <6\48 Z/V	
 r$   c                  ^    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R/.RRRR/.//.# )r   Alice	addressesnumberZ%  street
Morris St.city	Massillonr4   r:   zipf  previous_residencesr   	city_nameFoo York City!  
Spring St.ElizabethtonTN  
Barminghamr#   r#   r$   r%   missing_metadatarP   Q   s     GdlKT5 "H_/M.N#O	
 dlNT5 "H\/J.K#L	
 r$   c                   H  a  ] tR t^pt o R tR tR tR t]P                  P                  RR^ /R^/.RR3RR^ /R^/./RR3RR]3RR]3.4      R	 4       tR
 tR tR tR tR tR tR tR tR tR tR tR tR t]P                  P                  R^ RRRRRRR/RRR /R!RR"//RRRRRRR/RRR /R!RR"//.3^RRR#RR$RRRR /R!RR"//RRR#RR$RRRR /R!RR"//.3.4      R% 4       tR& tR' tR( t]P                  P                  R). R0O4      R* 4       tR+ tR, t R- t!R. t"R/t#V t$R# )1TestJSONNormalizec           	         R ^R^R^/R ^R^R^/R ^R^R^	/R ^
R^R^/.p\        V4      p\        V4      p\        P                  ! W#4       R# )abcNr   r   tmassert_frame_equalselfrecsresultexpecteds   &   r%   test_simple_records%TestJSONNormalize.test_simple_recordsq   sl    !S!S!$!S!S!$!S!S!$"c2sB'	
  %T?
f/r$   c                   \        V^ ,          R4      p\        V^ ,          R,          4      p\        P                  ! W#4       \        VR4      p. pV F  pVP	                  VR,          4       K  	  \        V4      p\        P                  ! W#4       \        VRRR7      p\
        P                  ! RR.4      P                  ^^.4      VR&   \        P                  ! W#4       R# )r   r(   r4   metar5   r   N)r   r   rX   rY   extendnparrayrepeatr[   r;   r]   r^   recs   &&   r%   test_simple_normalize'TestJSONNormalize.test_simple_normalize~   s    
1z:Z]:67
f/
J7COOC
O, X&
f/
JWEHHi%89@@!QH
f/r$   c           	         R . RORR^^.//.p\        VR .RR..R7      p\        ^ . ROR^^.^^.^^../4      p\        P                  ! W#4       R# )valuesmetadatalistdatarecord_pathrc   zmetadata.listdataN         rW   )r[   parse_metadata_fields_list_typer]   r^   s   &   r%   test_fields_list_type_normalize1TestJSONNormalize.test_fields_list_type_normalize   sz    y*zAq6.BC+
'  +!
z*+

 	.!Q!Q!Q0HI
 	f/r$   c                \    \        . 4      p\        4       p\        P                  ! W4       R # )NrW   r[   r]   r^   s   &  r%   test_empty_array"TestJSONNormalize.test_empty_array   s!    #;
f/r$   z!data, record_path, exception_typerT   Nz{"a": [{"a": 0}, {"a": 1}]}c                   Ve8   \         P                  ! VRR7      ;_uu_ 4        \        WR7       R R R 4       R # \        WR7      p\        ^ ^.R.R7      p\        P
                  ! WE4       R #   + '       g   i     R # ; i)Nz^$matchrq   rT   columns)pytestraisesr   r   rX   rY   )r[   datarq   exception_typer]   r^   s   &&&&  r%   test_accepted_input%TestJSONNormalize.test_accepted_input   sc     %~T::t= ;: $DBF !Q#7H!!&3 ;::s   A00B	c                   \        R R ^R^//4      p\        ^^..RR.R7      p\        P                  ! VP	                  V4      V4       \        R R ^R^//RR7      p\        ^^..RR.R7      p\        P                  ! VP	                  V4      V4       \        R R ^R^//R	R7      p\        ^^..R
R.R7      p\        P                  ! VP	                  V4      V4       \        VRR.RRR..RR7      p\        . RO4      P                  4       pVP                  P                  4       P                  V4      '       g   Q hR# )ABzA.AzA.Br   _sepA_AA_Bu   σu   AσAu   AσBr   r   r
   r   )rc   r   N)r   r   r
   states_name)	r   r   rX   rY   reindex_liker   sort_valuesr   equals)r[   r&   r]   r^   s   &&  r%   $test_simple_normalize_with_separator6TestJSONNormalize.test_simple_normalize_with_separator   sA   sAsA&6 78q!fXu~>
f11(;XFsAsA&6 7SAq!fXu~>
f11(;XFsAsA&6 7XFq!fX
J/GH
f11(;XFx h/0	
 BCOOQ~~))+228<<<<r$   c                    R ^^.RR^RR//p\        VRR7      p\        ^^.^R... R	OR7      p\        P                  ! W#4       R# )
rT   rU   b_1b_2__r   r   N)ru      )rT   b__b_1b__b_2rW   r[   r   r]   r^   s   &   r%   'test_normalize_with_multichar_separator9TestJSONNormalize.test_normalize_with_multichar_separator   sR    aVS5!UF";<$/1vq&12<UV
f/r$   c                z    \        R ^^./R RR7      p\        ^.^..R.R7      p\        P                  ! W4       R# )r   zPrefix.record_prefixzPrefix.0r   NrW   rz   s   &  r%   test_value_array_record_prefix0TestJSONNormalize.test_value_array_record_prefix   s<    q!fs)LqcA3Z*>
f/r$   c                    R RRRRRRRRR	/RR
RR/RRRR/.//p\        VRR.R7      p\        RR	.R
R.RR..RR.R7      p\        P                  ! W#4       R# )r4   r5   r/   r0   r1   r(   r   r)   r*   r   r+   r,   r-   r.   r   r   NrW   r   s   &   r%   test_nested_object_record_path0TestJSONNormalize.test_nested_object_record_path   s     YLV\59Ye<\<?

  6:2FGe_y%0<2GH\*
 	f/r$   c           	         \        VR R.RR R..R7      pRR.^,          R.^,          ,           R. ROR. ROR. RO/p\        W2P                  R	7      p\        P                  ! W$4       R
# )r   r   r
   r   rb   r   r   zstates.namer   r   N)r   r   r   r   r   r   r   )r   r   r   r   r   r   r!   )r   r   r   r   r   r    r"   r   r   r   rX   rY   )r[   r&   r]   ex_datar^   s   &&   r%   test_more_deeply_nested)TestJSONNormalize.test_more_deeply_nested   sy    (H-Y6@R4S
 w{i[1_4    @)
. Wnn=
f/r$   c                d   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/RRRR
R/RRR
R/./.p\        VRR RRR..4      pR. ROR R.^,          R.^,          ,           R. RORR.^,          R.^,          ,           R
. RO/p\        W2P                  R7      p\        P                  ! W$4       R# )r4   r5   r2   r3   r/   r0   r1   r(   r   r)   r*   r   r+   r,   r-   r.   r   r:   r9   r6   r   r7   r8   info.governorr   Nr)   r+   r-   r6   r7   )r3   r3   r3   r:   r:   r   r,   r.   r   r8   r   )r[   r   r]   r   r^   s   &    r%   test_shallow_nested%TestJSONNormalize.test_shallow_nested  s    T\2V\59Ye<\<?		 T]3X|T:Zt<	
,  *wfj5IJ
 Ki[1_x!|37l^a/=/A2EE;
 Wnn=
f/r$   c                   \        VR .RRRR..RR7      pR. ROR. RORR	.^,          R
.^,          ,           RR.^,          R.^,          ,           RR.^,          R.^,          ,           /p\        V4      p\        P                  ! W$4       R# )r(   r4   r2   r/   r0   ignorer   rq   rc   errorsr   r*   r5   r   r3   r:   r   r1   r9   Nr   r   rW   )r[   r;   r]   r   r^   s   &&   r%   -test_nested_meta_path_with_nested_record_path?TestJSONNormalize.test_nested_meta_path_with_nested_record_path0  s    #;(<=	
 K;i[1_x!|3$!tfqj0l^a/=/A2EE
 W%
f/r$   c           
        R RRRRR RRR/R RRR/./.pR	p\         P                  ! \        VR
7      ;_uu_ 4        \        VRR R.R7       RRR4       \        VRR R.RR7      pR F  pWC9   d   K  Q h	  R#   + '       g   i     L4; i)foohellobartherer   	somethingelse
something2else2z?Conflicting metadata name (foo|bar), need distinguishing prefixr~   rb   Nrc   rc   meta_prefixmetafoometabarr   r   )r   r   
ValueErrorr   )r[   r   msgr]   vals   &    r%   test_meta_name_conflict)TestJSONNormalize.test_meta_name_conflictD  s     wwK7L%9	
 Q]]:S114uen= 2  fE5>vV7C= = 8 21s   A77B	c           
         R RRRRR RRR/R RRR/./.pR R.p\        VRVR	R
7      pVR R.8X  g   Q hR F  pWC9   d   K  Q h	  R# )r   r   r   r   r   r   r   r   r   rc   r   Nr   )r   )r[   r   COLUMNSr]   r   s   &    r%    test_meta_parameter_not_modified2TestJSONNormalize.test_meta_parameter_not_modifiedY  s{     wwK7L%9	
 %.f7O5%.(((7C= = 8r$   c                   \        V^ ,          R4      p\        V^ ,          R,          4      p\        P                  ! W#4       \        VRRRR7      p. pV F  pVP	                  VR,          4       K  	  \        V4      pVP                  R R7      p\        P                  ! RR.4      P                  ^^.4      VR&   \        P                  ! W#4       R	# )
r   r(   r4   county_)rc   r   c                     R V ,           # )r   r#   )xs   &r%   <lambda>6TestJSONNormalize.test_record_prefix.<locals>.<lambda>z  s    Y]r$   r   r5   r   N)	r   r   rX   rY   rd   renamere   rf   rg   rh   s   &&   r%   test_record_prefix$TestJSONNormalize.test_record_prefixm  s    
1z:Z]:67
f/
	
 COOC
O, X&??+B?CHHi%89@@!QH
f/r$   c           	         \        \        ^4       Uu. uF
  pRV RR/NK  	  up4      p\        VRR7      p\        RRRR/RR	RR/RR
RR/.4      p\        P
                  ! W44       R# u upi )ru   kmqzT.r   zT.k0zT.m12N)r   ranger   r   rX   rY   )r[   isr]   r^   s   &    r%   (test_record_prefix_no_record_path_series:TestJSONNormalize.test_record_prefix_no_record_path_series  s~    U1X>XSQC#s+X>?6UC(UC(UC(
 	f/ ?s   A)c                    R P                  R4      pRP                  R4      ^ ^.R^^.R^^./p\        V4      p\        \        P                  ! V4      4      p\
        P                  ! WC4       R# )sK   [{"Ünicøde":0,"sub":{"A":1, "B":2}},{"Ünicøde":1,"sub":{"A":3, "B":4}}]utf8s	   Ünicødezsub.Azsub.BN)decoder   r   jsonloadsrX   rY   )r[   testjsontestdatar^   r]   s   &    r%   test_non_ascii_key$TestJSONNormalize.test_non_ascii_key  sr    A
&. 	 %++F3aVaVaV

 X&

8 45
f/r$   c                >   R R/R RRRR/RRRR	R
//.p\        V4      pR \        P                  R\        P                  R\        P                  R\        P                  R\        P                  /R RRRRRRRRR
/.p\        V4      p\        P
                  ! W$4       R# )r/   N
created_at
11/08/1993last_updated
26/05/2012author_namefirstJane	last_nameDoeinfo.created_atinfo.last_updatedauthor_name.firstauthor_name.last_namer   re   nanr   rX   rY   )r[   author_missing_datar]   r   r^   s   &    r%   test_missing_field$TestJSONNormalize.test_missing_field  s     TN|^\ReD
   34 !266#RVV#RVV' !<#\#V'
  W%
f/r$   zmax_level,expected	TextField	Some text	UserFieldIdID001NameName001	CreatedByUser001ImagerU   zUserField.IdzUserField.Namec                    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RRR/./.p\        VR.R .R
..VR7      p\        W$P                  P                  R7      p\        P
                  ! WT4       R# )r	  r  r
  Lookupr  r  r  r  r  r  r  rT   rU   tagsr   r   r   r   r   r   )rq   rc   	max_level)r   r   N)r   r   r   rm   rX   assert_equal)r[   r  r^   
test_inputr]   expected_dfs   &&&   r%    test_max_level_with_records_path2TestJSONNormalize.test_max_level_with_records_path  s    Z fi0#[#dGVY%G
 $[#dGVY%G	 #sK7L%9

*  !
-'+	
  X~~7L7LM
,r$   c                j   \         P                  R ^/R ^/.pRp\        P                  ! \        VR7      ;_uu_ 4        \        V^ R7       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)idz3All items in data must be of type dict, found floatr~   r  N)re   r   r   r   	TypeErrorr   )r[   	data_listr   s   &  r%   "test_json_normalize_non_dict_items4TestJSONNormalize.test_json_normalize_non_dict_items  sw    VVdBZ$4	C]]9C0092 1 ]]9C009% 10 10 100s   B8B!B	!B2	c                x    \        R R^//.4      p\        RR R^//./R4      p\        P                  ! W4       R# )r   r   dummyN)r   rX   rY   )r[   df1df2s   &  r%   !test_nested_flattening_consistent3TestJSONNormalize.test_nested_flattening_consistent  sC    sS!Ho./gsAh'897C 	c'r$   c                    \        R RRV/R RRR^/./.R.R7      p\        R^/\        ^4      R7      p\        P                  ! W#4       R# )r4   Texasr/   r5   r   r   indexN)r   r   r   rX   r  )r[   nulls_fixturer]   r^   s   &&  r%   test_nonetype_record_path+TestJSONNormalize.test_nonetype_record_path  sZ      '6=9)VsAhZ8  
 c1XU1X6
)r$   valuec                   \         P                  ! V4      pR RRV/pRpR\        V4      P                   R2p\        P
                  ! \        VR7      ;_uu_ 4        \        V.V.R7       RRR4       R#   + '       g   i     R# ; i)r4   r#  r/   z(Path must contain list or null, but got z
 at 'info'r~   r   N)r   r   type__name__r   r   r  r   )r[   r)  parsed_valuer  	test_pathr   s   &&    r%    test_non_list_record_path_errors2TestJSONNormalize.test_non_list_record_path_errors"  sw     zz%(w=
	L)223:? 	 ]]9C00J<i[A 1000s   A66B	c                    R p\        \        P                  ! V4      R.R.R7      p\        R^.R^.R\        P
                  ! ^c.\        R7      /4      p\        P                  ! W#4       R# )z,[{"id": 99, "data": [{"one": 1, "two": 2}]}]r   r  rp   onetwo)dtypeN)	r   r   r   r   re   rf   objectrX   rY   r   s   &   r%   test_meta_non_iterable(TestJSONNormalize.test_meta_non_iterable/  s]    A

4 0vhdVTQCT288RD+GH
 	f/r$   c                   a V3R  lp\        V! 4       4      p\        S^ ,          R,          4      p\        P                  ! W44       R# )c               3   D   <"   S ^ ,          R,           Rj  xL
  R#  L5i)r   r(   Nr#   )r;   s   r%   generator_data8TestJSONNormalize.test_generator.<locals>.generator_data<  s     !!}Z000s     r(   NrW   )r[   r;   r:  r]   r^   s   &f   r%   test_generator TestJSONNormalize.test_generator9  s8    	1   01Z]:67
f/r$   c                    R R^
RR^ //R^/p\        VRR7      p\        . R	O.. R
OR7      p\        P                  ! W#4       R# )_ida1l2l3ggr   r   r   N)r   
   r   )rC  _id_a1	_id_l2_l3rW   r   s   &   r%   'test_top_column_with_leading_underscore9TestJSONNormalize.test_top_column_with_leading_underscoreD  sF    b$q	2D!<#.j\3PQ
f/r$   c                   \        ^^.4      p\        WR7      p\        V4      p\        P                  ! VP
                  V4       \        VR4      p\        P                  ! VP
                  VP                  ^^.4      4       R# )   r$  r(   N)r   r   r   rX   assert_index_equalr%  rg   )r[   r;   idxseriesr]   s   &&   r%   test_series_index#TestJSONNormalize.test_series_indexL  sd    QFm
.'
fllC0
3
fllCJJ1v,>?r$   r#   )falsetruez{}r   z"text")%r,  
__module____qualname____firstlineno__r_   rj   rw   r{   r   markparametrizeNotImplementedErrorr   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r   r'  r/  r6  r<  rG  rN  __static_attributes____classdictcell____classdict__s   @r%   rR   rR   p   s    00&00
 [[+Aha!4.S!HsAh'(#t4*D2EF4,-		
44=.000(0<"0H0(!*!(0$00 0: [[  $[#dGVY%G#fi%8#s	 $[#dGVY%G#fi%8#s	$  $[&()#fi%8#s $[&()#fi%8#s%%	
(R-S(R-@	&(* [[W&LM
B N
B0	00@ @r$   rR   c                      a  ] tR tRt o R tR tR tR tR tR t	R t
R	 tR
 tR tR t]P                   P#                  RRRRRRRRRRRR/.3^ RRR/RRRRRRRR//RR R//.3^RRRRR!RRRR/RR/.3.4      R" 4       tR# tR$ tR% tR&tV tR# )'TestNestedToRecordiU  c                H    R ^R^/R^R^/.p\        V4      pTpW#8X  g   Q hR# )flat1flat2flat3Nr   rZ   s   &   r%   test_flat_stays_flat'TestNestedToRecord.test_flat_stays_flatV  s9    !Wa(7Aw*BC!$'!!!r$   c                P    R ^RR^R^//p\        V4      pR^R^R ^/pW#8X  g   Q hR# )r_  dict1rV   ddict1.cdict1.dNr   r   s   &   r%   test_one_level_deep_flattens/TestNestedToRecord.test_one_level_deep_flattens\  sA    Gc1c1%56!$'q)Q;!!!r$   c                p    R ^RR^R^/RRR^R^/R^//p\        V4      pR^R^R ^R^R	^R
^/pW#8X  g   Q hR# )r_  re  rV   rf  nestederg  rh  znested.dz
nested.e.cz
nested.e.dNr   r   s   &   r%   test_nested_flattens'TestNestedToRecord.test_nested_flattensd  sr    Qc1c1%sS!S!,c15
 "$'qqQ!!
 !!!r$   c           	         R p\         P                  ! \        VR7      ;_uu_ 4        \        VRRRR7       RRR4       R#   + '       g   i     R# ; i)^Key 'name' not found. To replace missing values of 'name' with np.nan, pass in errors='ignore'r~   r>   r   raiser   Nr   r   KeyErrorr   r[   rP   r   s   && r%   test_json_normalize_errors-TestNestedToRecord.test_json_normalize_errorsw  sB    : 	 ]]83//%'	 0///s   AA	c                    \        VR RRR7      p. RORRRRR\        P                  ..p. ROp\        W4R	7      p\        P
                  ! W%4       R
# )r>   r   r   r   rJ   rK   rL   rM   rN   r   N)r@   rB   rD   r:   rF   r=   )r?   rA   rC   r4   rE   r   r   r[   rP   r]   r   r   r^   s   &&    r%   test_missing_meta$TestNestedToRecord.test_missing_meta  sY      !{PX
 D<ubffE
 GW6
f/r$   c           	        R RRRRR^/R^/./p\        VRR RR..RR7      p^R\        P                  .^R\        P                  ..p. ROp\        W4R
7      P	                  R	\
        /4      p\        P                  ! W%4       \        P                  ! \        RR7      ;_uu_ 4        \        VRR RR..RR7       RRR4       R#   + '       g   i     R# ; i)rc   r   nested_metaNr)  ri   leafr   )rq   rc   r   nested_meta.leafr   z'leaf' not foundr~   rr  )ri   rc   r  )r   re   r   r   astyper5  rX   rY   r   r   rt  )r[   r   r]   r   r   r^   s   &     r%   test_missing_nested_meta+TestNestedToRecord.test_missing_nested_meta  s     }dGuaj5RS*=UV=&12	
 ubff%5"&&'9:5W6==(
 	f/ ]]8+=>>#}f56	 ?>>>s   'CC	c           	         R p\         P                  ! \        VR7      ;_uu_ 4        \        VRR.RRR7       RRR4       R#   + '       g   i     R# ; i)rq  r~   rG   r   r   rr  r   Nrs  ru  s   && r%   5test_missing_meta_multilevel_record_path_errors_raiseHTestNestedToRecord.test_missing_meta_multilevel_record_path_errors_raise  sG    
: 	 ]]83//%2H=	 0///s   AA	c                    \        VR R.RRR7      pRR.R\        P                  ..pRR.p\        W4R	7      p\        P
                  ! W%4       R
# )rG   r   r   r   r   rI   r=   rO   rH   r   Nr   ry  s   &&    r%   6test_missing_meta_multilevel_record_path_errors_ignoreITestNestedToRecord.test_missing_meta_multilevel_record_path_errors_ignore  s`      !.9	
 g&266"
 'W6
f/r$   c           	         R RRRRRR//R RRR	R
/RRRRR//.p\        V4      pR RRRRR/RRRRRRRR
/.pW#8X  g   Q hR# )r/   Nr   r   Smithr   	Appleseedr   r   r   r   r   r   r   r   r   r   r   r   s   &   r%   test_donot_drop_nonevalues-TestNestedToRecord.test_donot_drop_nonevalues  s     T=7G[+*VW|^\ReD
 "$' #W' $V'!<#\	
 !!!r$   c                |    R RRRRR RRR RRRRRR	RR
R/////p\        V4      pR RRRRRRRRRRRRR/pW#8X  g   Q hR# )r  Nlocationr
   r4   	town.inforegionr       gH@yz   ;@location.country.state.idz#location.country.state.town.info.id'location.country.state.town.info.region"location.country.state.town.info.x"location.country.state.town.info.y"location.country.state.town.info.z   @r   r   s   &   r%   $test_nonetype_top_level_bottom_level7TestNestedToRecord.test_nonetype_top_level_bottom_level  s     $d# $$d!3!4!3&	
" "$'$'145t02D02E02D
 !!!r$   c                    R RRR RRR RRR RRRRRRR	RR
R/////p\        V4      pR RRRRRRRRRRRRRRR/pW#8X  g   Q hR# )r  Nr  r
   r4   r  r  r   r  r  r  r  zlocation.idzlocation.country.idr  r  r  r  r  r  r   r   s   &   r%   test_nonetype_multiple_levels0TestNestedToRecord.test_nonetype_multiple_levels  s     $d$d#$d!3!4!3	&
$ "$'$4!4'5t02D02E02D	
 !!!r$   zmax_level, expectedNzCreatedBy.Namer
  zLookup.TextFieldr  zLookup.UserField.Idr  zLookup.UserField.Namer  zImage.arU   r	  r  r  r  r  r  r  rT   zLookup.UserFieldc           
     X    R RR/RRRRRRRR	//R
RR//.p\        W1R7      pWB8X  g   Q hR# )r	  r  r
  r  r  r  r  r  r  r  r  rT   rU   r  Nr   )r[   r  r^   max_level_test_input_dataoutputs   &&&  r%   test_with_max_level&TestNestedToRecord.test_with_max_level0  s[    Z fi0$!C #s	%
! "";Q!!!r$   c                    ^dpRRRRRRR/RR	RR
R	RRR	RRR	RR////////.pRRRRRR
RRRRRR/.p\        W!R7      pWC8X  g   Q hR# )d   r	  userr   	firstnameLeoLastNameThomsonfamily_treefather	Father001r  	Father002	Father003	Father004zCreatedBy.user.name.firstnamezCreatedBy.user.name.LastNamez&CreatedBy.user.family_tree.father.namez-CreatedBy.user.family_tree.father.father.Namez4CreatedBy.user.family_tree.father.father.father.namez;CreatedBy.user.family_tree.father.father.father.father.Namer  Nr   )r[   r  
input_datar^   r  s   &    r%   test_with_large_max_level,TestNestedToRecord.test_with_large_max_levelh  s    	 eZ K%$ & ($*K$,(.(06;2G/&+"	'(

. 0.	8+?FM{	
 "*B!!!r$   c                   ^ R^RRRR^//^R^RRRR^//^R^RRRR	^///p\        V4      p. ROVn        \        V4      p\        R. ROR. ROR
R\        P
                  \        P
                  .R\        P
                  R\        P
                  .R\        P
                  \        P
                  R./. ROR7      p\        P                  ! W44       R# )r   r  r   FooelementsrT   BarrU   BazrV   z
elements.ag      ?z
elements.bg       @z
elements.cg      @r$  Nrr   )r  r  r  )r   r%  r   r   re   r   rX   rY   )r[   r   r   r]   r^   s   &    r%   test_series_non_zero_index-TestNestedToRecord.test_series_non_zero_index  s     a
S!H=a
S!H=a
S!H=

 4L"i-sBFFBFF3rvvsBFF3rvvrvvs3 	
 	f/r$   c                \   R ^^RRR^/./.p\         P                  ! \        RR7      ;_uu_ 4        \        V^.R7       RRR4       \         P                  ! \        RR7      ;_uu_ 4        \        VR.^.R7       RRR4       R#   + '       g   i     LO; i  + '       g   i     R# ; i)	rT   
meta_valuerl  rU   zmust be stringsr~   rb   Nrp   )r   r   r  r   )r[   r   s   & r%   *test_json_normalize_meta_string_validation=TestNestedToRecord.test_json_normalize_meta_string_validation  s    a\8sAhZ@A ]]9,=>>4rd+ ? ]]9,=>>4hZrdC ?> ?> ?>>s   B,BB	B+	r#   )r,  rR  rS  rT  rb  ri  rn  rv  rz  r  r  r  r  r  r  r   rU  rV  r  r  r  r  rX  rY  rZ  s   @r%   r]  r]  U  s+    """&"06 0$"4"@ "D [[  ))*K-w/!3  $fi%8 ''$)K#  #s	  ))*K*T7FI,N!3	
5%	
(R"S(R"#"J0,	D 	Dr$   r]  )r   numpyre   r   pandasr   r   r   r   pandas._testing_testingrX   pandas.io.json._normalizer   fixturer&   r;   rP   rR   r]  r#   r$   r%   <module>r     s         6 # #L  0  <b@ b@JWD WDr$   