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

Return file like object for byte streams #1

Open
emi80 opened this issue Apr 18, 2023 · 0 comments
Open

Return file like object for byte streams #1

emi80 opened this issue Apr 18, 2023 · 0 comments

Comments

@emi80
Copy link
Member

emi80 commented Apr 18, 2023

def read(g):
    bs = io.BytesIO()
    for chunk in g:
        bs.write(chunk)
    bs.seek(0)
    return bs

g = r.get_expression(expressionId)
data = read(g)
df = pandas.read_csv(data, sep='\t', encoding="utf-8")
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

1 participant