I currently have a pandas dataframe, I want it to get downloaded when you hit an API endpoint using Falcon. Currently I have following code.
data = df
resp.status = falcon.HTTP_200
resp.stream = data
resp.content_type = 'text/csv'
How can send the contents of my dataframe over the network to so that it gets downloaded when you hit the API endpoint? Any help is Appreciated! Thanks!