pandarallel icon indicating copy to clipboard operation
pandarallel copied to clipboard

how to use it in fastapi

Open lim-0 opened this issue 2 years ago • 3 comments

I have a server like:

from fastapi import FastAPI
from pandarallel import pandarallel
pandarallel.initialize()
app = FastAPI()

@app.post("/area_quant")
def create_item(event_data: Areadata):
    data = pd.DataFrame(event_data.data)
    data['type_score'] = data['EVENT_TYPE'].applymap(Config.type_map)

if __name__ == '__main__':
    uvicorn.run(app)

as a server,it can only run one time,then it will shutdown,how can i use it in a server?

lim-0 avatar Dec 15 '22 09:12 lim-0

bump: I am also facing similar issue

ragrawal avatar Dec 19 '23 21:12 ragrawal

Pandaral·lel is looking for a maintainer! If you are interested, please open an GitHub issue.

nalepae avatar Jan 23 '24 09:01 nalepae

bump: I am also facing similar issue

+1,May I ask if you have resolved or identified the cause of the problem

TheHonestBob avatar Mar 23 '24 05:03 TheHonestBob