I'm new to pandas and I'm trying to check entries from 2 different excel sheets.
Df1-
Date Value Date Narration Cod Debit Credit Balance
0 02-Apr-2021 02-Apr-2021 BY XYZ company TRF 0 1112.00 -3244213
1 02-Apr-2022 02-Apr-2022 BY XYZ company CLR 2424 0.00 -3244212
2 02-Apr-2023 02-Apr-2023 BY XYZ company TRF 0 9894.00 -3244211
3 02-Apr-2024 02-Apr-2024 BY XYZ company TRF 32234 130000.03 -3244210
4 02-Apr-2025 02-Apr-2025 BY XYZ company TRF 0 45435.00 -3244209
5 02-Apr-2026 02-Apr-2026 BY XYZ company CLR 983 0.00 -3244208
Df2 -
Date Unnamed: 1 Company Name Vch Type Debit Credit
0 2021-04-01 TEAM XYZ QWERTY123 (21-23) Receipt 0 45435.00
1 2021-04-02 TEAM XYZ QWERTY123 (21-24) Payment 32234 0.00
2 2021-04-03 TEAM XYZ QWERTY123 (21-25) Receipt 0 9894.00
3 2021-04-04 TEAM XYZ QWERTY123 (21-26) Payment 2424 130000.03
4 2021-04-05 TEAM XYZ QWERTY123 (21-27) Receipt 0 1112.00
Here's what I'm trying to do. Both files have similar entries and I need to get the value that's not in either file. For ex: the value 983 (df1) has no match in df2. I want 983 in the output. Also,there can be n entries of the same value , for ex : there can be n entries of the value 9894.00 in debit column of df1 and it has to find the same value in df2. If there are 10 entries of 9894.00 in file 1 there has to be 10 entries of 9894.00 in df2 as well.
Here's what I've tried so far :
import pandas as pd
df1 = pd.read_excel(file1)
df2 = pd.read_excel(file2)
report = pd.merge(df1,df2)
print(report)
But this doesn't really get the expected output.