Answers for "pandas remove columns with valye"

0

remove columns from dataframe

df.drop('col_name',1) #1 drop column / 0 drop row
Posted by: Guest on August-10-2020
0

remove columns that start with pandas

cols = [c for c in df.columns if c.lower()[:6] != 'string']
df=df[cols]
Posted by: Guest on March-16-2021

Code answers related to "pandas remove columns with valye"

Python Answers by Framework

Browse Popular Code Answers by Language