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

Python Answers by Framework

Browse Popular Code Answers by Language