I have a two dataframes that I need to join by one column and take just rows from the first dataframe if that id is contained in the same column of second dataframe:
df1:
id a b 2 1 1 3 0.5 1 4 1 2 5 2 1 df2:
id c d 2 fs a 5 fa f Desired output:
df: id a b 2 1 1 5 2 1 I have tried with df1.join(df2("id"),"left"), but gives me error :'Dataframe' object is not callable.