Answers for "remove specific columns that match a criteria in pandas"

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 "remove specific columns that match a criteria in pandas"

Python Answers by Framework

Browse Popular Code Answers by Language