Hello,
I want to create a python function API endpoint that has access to a large pandas data frame in memory. I do not want to read the same data into a dataframe every time a request is made.
Is this possible? If so, how is best to do this?
It would be too slow to do as suggested here:
Thank you,
Adam
Hi,
you can build the Pandas dataframe outside the api_py_function(). This means the dataframe is only loaded once, when the endpoint is started.