Im trying to check if DataFrame1 has a number 1 for position in a column called 'Position' and if its return 1 (or True) it will not put another number 1 on the second DataFrame2, same row/column as the first DataFrame.
df10c['Position'] = np.zeros(489,)
for i in range(0, len(df11c)-1):
df11c['VarV'][i] = (df11c['Close'][i+1] / df11c['Low_D'][i] - 1 )* 100
df11c['VarC'][i] = (df11c['Close'][i+1] / df11c['High_D'][i] - 1 )* 100
df11c.loc[(df11c['VarV'] <= varv) & (df10c['Position'] != 1),'Position'] = 1
df11c.loc[df11c['VarC'] >= varc, 'Position'] = -1
df11c.loc[(df11c['VarV'] <= varv) & (df10c['Position'] != 1),'Position'] = 1
problem is here and idk how to say if df10c['position'] != 1 print a number 1 on df11c