DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
pandas meerge but keep certain columns
df = pd.merge(df,df2[['Key_Column','Target_Column']],on='Key_Column', how='left')
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#pandas
#meerge
#columns
ADD COMMENT
Topic
COMMENT
Name
1+5 =
Submit