I have to read excel and if column value meet some condition i have to add some thing.
Below are the input excel
I just need to take Name and Values if Value > 50
Below is my script.
df = pd.read_excel(file)
print (df[df['Value'] > 50]) #prints the name and values
if df[df['Value'] > 50]:
print (df['Value'])
I am getting ValueError. ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). Please help me.