Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use it in fastapi #213

Open
lim-0 opened this issue Dec 15, 2022 · 3 comments
Open

how to use it in fastapi #213

lim-0 opened this issue Dec 15, 2022 · 3 comments

Comments

@lim-0
Copy link

lim-0 commented Dec 15, 2022

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?

@ragrawal
Copy link

bump: I am also facing similar issue

@nalepae
Copy link
Owner

nalepae commented Jan 23, 2024

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

@TheHonestBob
Copy link

bump: I am also facing similar issue

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants