Answers for "how to eliminate specific columns in python dataframe"

8

python: remove specific values in a dataframe

df.drop(df.index[df['myvar'] == 'specific_name'], inplace = True)
Posted by: Guest on June-22-2020
0

Drop specific column in data

df.drop(['Order Date','Purchase Address'],axis=1,inplace=True)
Posted by: Guest on September-08-2021

Code answers related to "how to eliminate specific columns in python dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language