1. metric templates
Explore additional feature development within Pygwalker, such as the introduction of metric templates.
This will save users the process of writing sql to calculate metrics, currently still in POC stage, example:
python
Charts of retained the next day and daily new users
Chart components base on the altair
from pygwalker.data_parsers.database_parser import Connector
from pygwalker_tools.metrics import MetricsChart
conn = Connector(
"snowflake://user_name:passowrdhost/database",
"""SELECT * FROM xxx"""
)
retention = MetricsChart(
conn,
{"date": "your_date_field", "user_id": "your_user_id_field", "user_signup_date": "your_xxx_field"},
params={"time_unit": "day", "time_size": 1}
).retention()
new_user_count = MetricsChart(conn, {"date": "your_date_field", "user_id": "your_user_id_field", "user_signup_date": "your_xxx_field"}).new_user_count().properties(height=60)
retention & new_user_count
2. login-cli
A command-line tool has been incorporated to make it easier for users to set kanaries tokens locally.
bash
pygwalker login
Others
In addition, This would be the last version of pygwalker 0.3.
Pygwalker 0.4.0 will be released next week, include custom metric calculations.
Thanks for your ongoing support and stay tuned for the upcoming features in Pygwalker!
Feat
* feat: add metrics chart feature https://github.com/Kanaries/pygwalker/pull/372
* feat: add login-cli to set kanaries token https://github.com/Kanaries/pygwalker/pull/374
* feat: data parser add new param: infer_number_to_dimension https://github.com/Kanaries/pygwalker/pull/375
* feat: metrics chart add new chart https://github.com/Kanaries/pygwalker/pull/376
Chore
* chore: update method(track_event) annotation https://github.com/Kanaries/pygwalker/pull/373
longxiaofei
**Full Changelog**: https://github.com/Kanaries/pygwalker/compare/0.3.19...0.3.20