DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to join two dataframe in pandas based on two column
merged_df = left_df.merge(right_df, how='inner', left_on=["A", "B"], right_on=["A2","B2"])
Source by www.kite.com #
PREVIOUS
NEXT
Tagged:
#join
#dataframe
#pandas
#based
#column
ADD COMMENT
Topic
COMMENT
Name
7+8 =
Submit