About Pygwalker 0.3.20
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:
# 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:passowrd@host/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.
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 #372
- feat: add login-cli to set kanaries token #374
- feat: data parser add new param: infer_number_to_dimension #375
- feat: metrics chart add new chart #376
Chore
- chore: update method(track_event) annotation #373
Full Changelog: 0.3.19...0.3.20