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

Byte to String Conversion #70

Open
wscsgh59 opened this issue Apr 15, 2019 · 1 comment
Open

Byte to String Conversion #70

wscsgh59 opened this issue Apr 15, 2019 · 1 comment

Comments

@wscsgh59
Copy link

When Using Panda reader, all strings are converted to byte strings. Overwriting the Qreader doesnt soilve it
I took the new method from here https://qpython.readthedocs.io/en/latest/usage-examples.html?highlight=StringQReader

@wibotwi
Copy link

wibotwi commented Jan 22, 2020

You can manually convert back to strings using:
df.apply(lambda row: row.apply(lambda x: x.decode('utf-8') if type(x) == bytes else x))

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

2 participants