import pandas as pd
import csv
df = pd.read_csv('niftsuper50.csv')
close = df.Close
supertrend = df.st
if (close > supertrend):
print (close)
I need the Value of Close column where its being true
import pandas as pd
import csv
df = pd.read_csv('niftsuper50.csv')
close = df.Close
supertrend = df.st
if (close > supertrend):
print (close)
I need the Value of Close column where its being true
This should work, but you did not supply your full code, so it is hard to know if it is what you wanted. df = df[df['Close']>supertrend]