Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
python - remove repeted columns in a df
herzbube
Programming language:
Python
2021-06-05 05:23:52
0
Q:
python - remove repeted columns in a df
cristina78
Code:
Python
2021-06-16 08:43:19
df.loc[:,~df.T.duplicated(keep='first')]
0
Tags
python
remove
columns
Related
pandas dataframe remove rows by column value
python code to drop columns from dataframe
remove columns from a dataframe python
python extract specific columns from pandas dataframe
pandas dataframe delete column
remove 1st column pandas
delete columns pandas
pandas remove char from column
pandas remove column
remove duplicate columns python dataframe
remove a columns in pandas
python - show repeted values in a column
how to delete a column from a dataframe in python
remove column from dataframe
New to Communities?
Join the community