Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
remove duplicates based on two columns in dataframe
English Major
Programming language:
Whatever
2021-07-08 21:38:29
0
Q:
remove duplicates based on two columns in dataframe
Cranberry48
Code:
Whatever
2021-08-16 20:59:24
df.drop_duplicates([
'A'
,
'B'
],keep=
'last'
)
1
Tags
data
remove
columns
two
dataframe
two columns
base
Related
df remove duplicate rows
how to combine delete rows based on condition on another dataframe
create dictionary without removing duplicates from dataframe
New to Communities?
Join the community