Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Extract columns of dataframe to make new dataframe

graduation = df.filter(['23_1','28_1','27_1','26_1','25_1','24_1'], axis=1)
graduation.columns = ['Bachelor', 'Post Doctoral', 'PhD', 'MaSc', 'MEng', 'MBA']
 
PREVIOUS NEXT
Tagged: #Extract #columns #dataframe #dataframe
ADD COMMENT
Topic
Name
2+6 =