Created
May 31, 2019 10:40
-
-
Save arossouw/9cfa4874409c3c2976902416dee1721c to your computer and use it in GitHub Desktop.
Difference between 2 datasets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2.7 | |
import pandas as pd | |
row_1 = [200.3, 150.2] | |
row_2 = row_1 + [300.4] | |
df1 = pd.DataFrame(row_1, columns=['credit_amt']) | |
df2= pd.DataFrame(row_2, columns=['credit_amt']) | |
column = 'credit_amt' | |
df2[~df2[column].isin(df1[column])] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment