I have 2 csv files lets say A.csv and B.csv. A.csv has columns a,b,c,d and B.csv has columns x,y,z,t. I want to search that if an entry in column a exist in column x then print z and d if that rows.
Like,
for each i in A
if A.[a][i] exist in B.x
print A.[d][i] + B.[z][i]
-- I have already the code below. I just need to learn how to settle the code for this
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
A = pd.read_csv('path1')
B = pd.read_csv('path2')
AandBand an expected output?