I have two dataframes certdf and df that I have compared using:
certdf['SampNum'].isin(df['SampNum']).value_counts()
resulting in:
True 730
False 170
Name: SampNum, dtype: int64
I want to export the 170 rows from certdf that are not present in df into their own dataframe. Eventually I will simply add these values to df, but I also need to export them as an independant xlsx file. My thought was that if I can get the values as an independant dataframe, I can use ExcelWriter to spit out my file. I'm new to python, but not to scripting, so I know this is probably really simple, but I can't figure it out. Thanks.