Answers for "pandas drop columns name contains"

0

remove columns that contain certain names in pandas

df = df.drop(df.filter(regex='Test').columns, axis=1)
Posted by: Guest on September-17-2021

Python Answers by Framework

Browse Popular Code Answers by Language