pygwalker icon indicating copy to clipboard operation
pygwalker copied to clipboard

Tab character (\t) in Dataframe causes JSON.parse error

Open jorisroovers opened this issue 2 years ago • 2 comments

Thanks for creating pygwalker, just starting playing with it, it looks great!

When trying the following snippet:

import pandas as pd
import pygwalker as pyg

df = pd.DataFrame([{"a":"\tb"}])
gwalker = pyg.walk(df)

I get this error:

Javascript error adding output!
SyntaxError: JSON.parse: bad control character in string literal at line 1 column 24 of the JSON data
See your browser Javascript console for more details.

jorisroovers avatar Feb 21 '23 15:02 jorisroovers

It seems to have been fixed in #31 and pre-released in 0.1.4-alpha2.

Could you please have a try with pip install "pygwalker>=0.1.4-alpha2" and leave some feedback?

BTW: Welcome to join our discord discord invitation link to keep track of the latest progress.

Asm-Def avatar Feb 22 '23 20:02 Asm-Def

Could you please have a try with pip install "pygwalker>=0.1.4-alpha2" and leave some feedback?

Yup, that fixed it!

jorisroovers avatar Feb 23 '23 16:02 jorisroovers