App using pandas runs on local streamlit but not on cloud

App runs flawlessly locally
Does not run when deployed on Community Cloud

ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
Traceback:
File “/home/vscode/.local/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/exec_code.py”, line 88, in exec_func_with_error_handling
result = func()
^^^^^^
File “/home/vscode/.local/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py”, line 579, in code_to_exec
exec(code, module.dict)
File “/workspaces/Trade_Lots_POC/app.py”, line 255, in
train.append(plusbox(df))
^^^^^^^^^^^
File “/workspaces/Trade_Lots_POC/app.py”, line 47, in plusbox
if (dataframe[‘High’].iloc[t] == max_array) and (t < (m-4)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/vscode/.local/lib/python3.11/site-packages/pandas/core/generic.py”, line 1577, in nonzero
raise ValueError(