Is there a way to make the window in df.rolling dynamic depending on which row it is calculating for?
simply use .rolling(365, min_periods=1) no need of for loop
data['52wkLow'] = data['Low']['GME'].rolling(365,min_periods=1).min()