Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python - remove repeted columns in a df

df.loc[:,~df.T.duplicated(keep='first')]
Comment

PREVIOUS NEXT
Code Example
Python :: create random dataframe pandas 
Python :: how to take user input in a list in python 
Python :: python decimal number into 8 bit binary 
Python :: get parameters flask 
Python :: how to check if a network port is open 
Python :: how to add an active class to current element in navbar in django 
Python :: numpy replicate array 
Python :: iterative binary search python 
Python :: tkinter window title 
Python :: p-norm of a vector python 
Python :: is string python 
Python :: get last element of dictionary python 
Python :: pad zeros to a string python 
Python :: python gt index in for cycle 
Python :: find index of max value in 2d array python 
Python :: olst = [] a = int(input()) b = int(input()) for ele in range(a,b+1): if ele%2 != 0: olst.append(ele) print(olst[::-1]) 
Python :: what is the meaning of illiteral with base 10 
Python :: subplot adjust python 
Python :: python program to convert tuple into string 
Python :: y=mx+b python 
Python :: how to flip a list backwards in python 
Python :: most occurring string in column pandas 
Python :: python: separate lines including the period or excalamtion mark and print it to the prompt.. 
Python :: python to exe 
Python :: python nested tqdm 
Python :: json load from file python 3 
Python :: how to put more than one file type in pysimplegui 
Python :: python regex to match ip address 
Python :: python selenium geolocation 
Python :: sort by column dataframe pyspark 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =