3
Considering two dataframes like the ones below:
import pandas as pd
df = pd.DataFrame({'id':[3,6,9,12,15]})
df1 = pd.DataFrame({'id': [2,4,6,8,10,12,14]})
How to account for the intersection between df
and df1
? That is, how many elements of df are also in df1