close
0

Convert Select Columns in Pandas Dataframe to Numpy Array

avatar
asked 23-06-2022

1 Answers


0

Try

cols_as_np = df[df.columns[1:]].to_numpy()
avatar
answered 23-06-2022