I have tried merging with Pandas merge, however, as the length of data is different, merge function is broadcasting the data even when using a key. The following line of code has been used.
dt = pd.merge(df,data[['Post ID','Sentiment']], on = 'Post ID')
Using join
produces the following:
df.join(data[['Post ID','Sentiment']],on = 'Post ID')
You are trying to merge on object and int64 columns. If you wish to proceed you should use pd.concat