Skip to content

Python code snippet – How to drop columns in pandas?

df.drop(['column_1', 'Column_2'], axis = 1, inplace = True) 
See also  Python code snippet - How to make a rectangle in pygame?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.