DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
left join two dataframes pandas on two different column names
Both_DFs = pd.merge(df1,df2, how='left',left_on=['A','B'],right_on=['A','CC']).dropna()
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#left
#join
#dataframes
#pandas
#column
#names
ADD COMMENT
Topic
COMMENT
Name
8+6 =
Submit