def zip_frames(frames, axis=<NUM_LIT:1>):
if axis == <NUM_LIT:1>:<EOL><INDENT>columns = frames[<NUM_LIT:0>].columns<EOL>zipped = [f.loc[:, c] for c in columns for f in frames]<EOL>return pd.concat(zipped, axis=<NUM_LIT:1>)<EOL><DEDENT>else:<EOL><INDENT>index = frames[<NUM_LIT:0>].index<EOL>zipped = [f.loc[i, :] for i in index for f in frames]<EOL>return pd.DataFrame(zipped)<EOL><DEDENT>
take a list of frames, zip them together under the
assumption that these all have the first frames' index/columns.

Returns
-------
new_frame : DataFrame