Kanaries / pygwalker

PyGWalker: Turn your pandas dataframe into an interactive UI for visual analysis
https://kanaries.net/pygwalker
Apache License 2.0
13.41k stars 699 forks source link

[BUG] pygwalker bug report #621

Open njulemon opened 2 months ago

njulemon commented 2 months ago

Describe the bug Hello, disappointed that it does not work with df which columns are based on MultiIndex.

To Reproduce Steps to reproduce the behavior:

Run df = pd.DataFrame( {(1, 2): [1, 2, 3], (1, 3): [4, 5, 6]} ) pygwalker.walk(df)

Error 53 for col in columns: ---> 54 col = col.replace("\", "-") 55 if column_map[col] == 0: 56 renamed_columns.append(col)

Expected behavior Able to manage it.

Versions