A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Ok, I think I found out what the potential issue is.
What I have been able to notice is that when using xl() to set up a dataframe i.e "df = xl()", is that the #CALC error only happens when the dataframe is on the larger side. (Also make sure to press F9 to refresh the runtime)
For example:
When selecting just the first row of my datarame the following works:
df = xl("D1:S2", headers=True)
However, if I try to add just one more column to this small dataframe, it no longer works:
df = xl("D1:T2", headers=True) ;This results in #CALC!
For context the entire dataframe that I am trying to use is D1:$W463, which is really not that large when you think about it.
However, each of those cells contains very heavy regular excel functions, and at that point it, surpasses the 100mb limit that each excel-python cell is allowed according to this MSFT #CALC! Article.
The solution here is then to paste-value over your own dataframe so that the dataframe range holds less memory and the cell can actually process it.
Once, I replaced the dynamic dataframe with a static-values-only dataframe, I was able to use python again.
The issue that remains here is why/when did this change, because the workbook I'm referencing was working fine, and then one day it wasn't.