Back
Is there a way to select all but one column in a pandas DataFrame object? I've seen ways to delete a column, but I don't want to do that.
Use drop method:
df.drop(column_name, axis=1)
31k questions
32.8k answers
501 comments
693 users