This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
Replies: 1 comment 1 reply
-
Ig you are using @app.get("/download/{name}")
def read_file(name: str):
file_txt = drive.get(name)
buff = io.BytesIO(file_txt)
df = pd.read_csv(buff) assuming |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear Sir: Sorry I am quite new in fastapi and deta.
May I ask a very simple and naive question?
After get a csv file (presumly as txt file?) from Drive, how can I convert it into dataframe? Is there any reference code? Thanks.
@app.get("/download/{name}")
def read_file(name: str):
file_txt = drive.get(name)
Beta Was this translation helpful? Give feedback.
All reactions