Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python - remove columns with same name and keep first

df1 = df.loc[:, ~df.columns.duplicated()]
Comment

PREVIOUS NEXT
Code Example
Python :: web crawler using python 
Python :: tf-idf python implementation 
Python :: python glob 
Python :: commentaire python 
Python :: count unique pandas 
Python :: list of numbers 
Python :: subprocess.check_output python 
Python :: heroku python version 
Python :: python sort dictionary by key 
Python :: creating data frame in python with for loop 
Python :: smtplib send pdf 
Python :: seaborn pairplot 
Python :: python split string every character 
Python :: hardest python questions 
Python :: python split list into n sublists 
Python :: tkinter margin 
Python :: django.db.utils.ProgrammingError: relation "users" does not exist in django 3.0 
Python :: train split 
Python :: How to scale a pandas dataframe 
Python :: matplotlib location legend 
Python :: pytorch optimizer change learning rate 
Python :: .text python 
Python :: random numbers python 
Python :: pandas replace values based on condition 
Python :: making a basic network scanner using python 
Python :: image on jupyter notebook 
Python :: dataframe plot histogram 
Python :: apply same shuffle to two arrays numpy 
Python :: Python pandas first and last element of column 
Python :: drop rows from dataframe based on column value 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =