I have two csv files read into 2 dataframes:
df1:
Aend Bend
A B
C D
df2
node_name Alarm
A alarm1
D alarm2
List =["NTP", "LOS"]
I want to check for row1 in df1 if columns Aend or Bend matches with node_name in df2. If yes take the corresponding row from df2 and have to check the condition
`if df2[Alarm] contains any value from List :
print "YES"
else:
print "NO"
Similarly check for row2 . What would be the best way to do this.