pykx pandas.read_html() fails to convert string to html table

https://learninghub.kx.com/forums/topic/pykx-pandas-read_html-fails-to-convert-string-to-html-table

Hi

I have started using pykx within my kdb system .

Here's the issue:

(see the photo. something went wrong with the code editor)





I cannot seem to be able to post an example html table, but it fails with any (you can generate a basic one on chatgpt).

This code works well with old embedPy.
Any ideas ?

PyKX converts a q CharVector to Python NumPy array of bytes by default.

https://code.kx.com/pykx/2.5/pykx-under-q/upgrade.html#functional-differences

``` q).pykx.eval["lambda x: print(type(x))"][test];

q).pykx.eval[“lambda x: print(x)”][test];
[b’<’ b’t’ b’a’ b’b’ b’l’ b’e’ b’>’ b’<’ b’t’ b’r’ b’>’ b’<’ b’t’ b’h’ …

<p>You can create a helper to convert to strings as you require:</p>
q)b2s:.pykx.eval[“lambda x: x.tobytes().decode(‘UTF-8’)”]
q).pykx.print pd[`:read_html]b2s[test]

[ First Name Last Name Age
0 John Doe 30
1 Jane Smith 25
2 Emily Jones 22]