12-pandas mismatch splicing

PD PANDAS AS Import 
DEF make_dataFrame (cols, IND): 
    Data = {C: [STR (C) + STR (I) for I in IND] C for in cols} 
    return pd.DataFrame (Data, IND) 
X = make_dataFrame ( "the ABC", [1,2]) 
Y = make_dataFrame ( "the BCD", [3,4-]) 
Print (pd.concat ([X, Y], Sort = True)) # outside the company, and sets 
print (pd .concat ([x, y], join = "inner")) # even within the intersection, but there is an overlap splice of 
print (pd.concat ([x, y ], join_axes = [x.columns])) # to x prevail 
print (pd.concat ([x, y ], join_axes = [y.columns])) # y subject to 
print (x.append (y)) # additional

  

Guess you like

Origin www.cnblogs.com/wcyMiracle/p/12446124.html