I have a data frame with a large number of columns and I would like to 
remove certain unnecessary columns as part of the initial data wrangling.

I can do this succinctly using the numeric index...

using DataFrames
A = DataFrame(A=1:3, B=4:6, C=7:9, D=10:12, E=13:15)
B = A[:, setdiff(1:end,[3,4])] # returns DFs without columns C & D

Is there a way to do this using the column names rather than their numeric 
indices?

Andre



Reply via email to