Kanaries / pygwalker

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

How to switch the language pack to Chinese #519

Closed zxdmrg closed 3 months ago

zxdmrg commented 3 months ago

How to switch the language pack to Chinese

ObservedObserver commented 3 months ago

PyGWalker is a Python wrapper for Graphic Walker. In addition to all the official parameters mentioned in the PyGWalker documentation, you can directly pass extra parameters to Graphic Walker in Python. You can refer to the Graphic Walker i18n documentation for more information.

Here's an example of how to use it:

import pygwalker as pyg

pyg.walk(df, i18nLang="zh")

Please note that df represents your data frame, and "zh" is an example of the parameter i18nLang being set to the Chinese language.

Welcome to make a PR if you prefer set language pack as global config / env var.

zxdmrg commented 3 months ago

Solved my problem. Thank you very much