Answers for "how to i delete data from two columns if they have same"

6

drop multiple columns in python

dataframe.drop(['columnname1', 'columnname2'], axis=1, inplace=True)
Posted by: Guest on March-14-2021
0

python - remove columns with same name and keep first

df1 = df.loc[:, ~df.columns.duplicated()]
Posted by: Guest on October-22-2020

Code answers related to "how to i delete data from two columns if they have same"

Python Answers by Framework

Browse Popular Code Answers by Language