I have a CSV file that includes 2 columns and 28 rows. how can I find a specific value in the second column based on the opposite value in the first column? I write below code but it doesn't work.
import numpy as np
import pandas as pd
pipe_dict = pd.read_csv("/Users/hossein.hooshmand/Desktop/PIPE GEOMETRY FINDER - Copy.csv")
x = int(input ("pipe size: "))
row_num = pipe_dict [pipe_dict["PipeSize"] == x].index
print (pipe_dict.at[row_num,"OD"])