I have a df of data with the 0th column being a label column. I want to save this 0th column to a list.
I tried this, but it just gives me a dataframe without the specified list (which now that I look at it, makes sense).
my_vars = df.drop(df.columns[0], axis=1).to_numpy().to_list()
is there anyway to do a nice neat one-liner that does achieve the intended result?