exxeleron / qPython

interprocess communication between Python and kdb+
http://www.devnet.de
Apache License 2.0
151 stars 90 forks source link

Byte to String Conversion #70

Open wscsgh59 opened 5 years ago

wscsgh59 commented 5 years ago

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 commented 4 years ago

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))