create new dataframe with columns from another dataframe pandas

37

new = old[['A', 'C', 'D']].copy()
new = old[['A', 'C', 'D']].copy()
new = pd.DataFrame([old.A, old.B, old.C]).transpose()

Comments

Submit
0 Comments