import pandas as pd table_1_path = 'path\\table_1.txt' table_2_path = 'path\\table_2.txt' table_1 = pd.read_csv(table_1_path) table_2 = pd.read_csv(table_2_path) value = table_1['field_1'] # To select rows whose column value is in an iterable, use .isin() output = table_2.loc[table_2['field_1'].isin(value)]