how to take subset of dataframe without includin specific columns ~ code example
Example 1: python - subset specific columns name in a dataframe
columns = ['b', 'c']
df1 = pd.DataFrame(df, columns=columns)
Example 2: select columns to include in new dataframe in python
new = old[['A', 'C', 'D']].copy()