Answers for "pandas delete column by position"

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 delete column by position"

Python Answers by Framework

Browse Popular Code Answers by Language