set df1["name"] = df2["name] if df1["id"] == df2["id].
Both dataframes are of different sizes. I am trying to implement this behavior by writing the code as below:
dtl['name'] = dtlLookUp[["name"]].loc[ dtlLookUp["id"] == (dtl["id"]) ]
However, I am getting error:
ValueError: Can only compare identically-labeled Series objects
EDIT :

dtl['name'] = dtlLookUp[["name"]].loc[ dtlLookUp["id"].isin(dtl["id"])) ]? Can you come up with a minimal reproducible example ?