Python Buat DataFrame Pandas Baru dengan kolom tertentu
# Basic syntax:
new_dataframe = old_dataframe.filter(['Columns','you','want'], axis=1)
Charles-Alexandre Roy
# Basic syntax:
new_dataframe = old_dataframe.filter(['Columns','you','want'], axis=1)
new = old[['A', 'C', 'D']].copy()
new = pd.DataFrame([old.A, old.B, old.C]).transpose()