DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to find uncommon records of two dataframes
df
=
df1
.
merge
(
df2
,
how
=
'outer'
,
indicator
=
True
)
.
loc
[
lambda
x
:
x
[
'_merge'
]
==
'left_only'
]
df
Source by kanoki.org #
PREVIOUS
NEXT
Tagged:
#find
#uncommon
#records
#dataframes
ADD COMMENT
Topic
COMMENT
Name
7+9 =
Submit