I would like to convert everything but the first column of a pandas dataframe into a numpy array. For some reason using the columns= parameter of DataFram
columns=
DataFram
the easy way is the "values" property df.iloc[:,1:].values
df.iloc[:,1:].values
a=df.iloc[:,1:] b=df.iloc[:,1:].values print(type(df)) print(type(a)) print(type(b))
so, you can get type