Change in Pandas Dataframe when reading from anvil tables

What I’m trying to do:
This is a piece of code that was working properly until recently. I used to read in a dataframe

df =pd.DataFrame(app_tables.discontinued_items.search())

I used to get this dataframe, and would post process it…

Lately, I am getting the following dataframe on the server side. This is breaking the code, as post processing assumes the above structure
image

Interestingly, i get the first result when using uplink and executing the same from a Jupyter notebook. Versions of pandas are the same (2.2.2) in Anvil server and jupyter notebook

Any help/suggestions/pointers will be greatly appreciated.

Thanks