I have three dataframes:
df_total
df1
df2
Where
df2 = pd.merge(df_total, df1[[Portfolio, Value]], on=Portfolio, how = inner)
I merge df_total
and df1
when the values of Portfolio
column are the same. This results in df2
.
How can I get a df3=
that represents the rest of df_total
that is not included in the intersection df2
?