The Welch's t-test functions have been renamed for simplicity and ease of use:
| Old Name | New Name | Description |
|---|---|---|
welch_ttest_one_sample |
one_t |
One-sample Welch's t-test |
welch_ttest_two_sample |
two_t |
Two-sample Welch's t-test |
- Previous version: 0.3.0
- New version: 0.3.1
-
src/quantpolars/ttest.py- Renamed
welch_ttest_one_sample→one_t - Renamed
welch_ttest_two_sample→two_t
- Renamed
-
src/quantpolars/__init__.py- Updated exports to use new function names
- Bumped version to 0.3.1
-
pyproject.toml- Updated version to 0.3.1
-
tests/test_ttest.py- Updated all 27 test cases to use new function names
- All tests pass ✅
-
demo_ttest.py- Updated all examples to use new function names
- Demo runs successfully ✅
-
TTEST_DOCUMENTATION.md- Updated all documentation with new function names
- Updated all code examples
from quantpolars import welch_ttest_one_sample, welch_ttest_two_sample
# One-sample test
result = welch_ttest_one_sample(df, column="values", mu=0)
# Two-sample test
result = welch_ttest_two_sample(df, column1="col1", column2="col2")from quantpolars import one_t, two_t
# One-sample test
result = one_t(df, column="values", mu=0)
# Two-sample test
result = two_t(df, column1="col1", column2="col2")- Shorter function names - Easier to type and remember
- Cleaner code - More concise and readable
- Consistent with package philosophy - Similar to existing
sm()function - Backward compatibility note - This is a breaking change for v0.3.0 users
- ✅ All 27 unit tests pass
- ✅ Demo script runs successfully
- ✅ Documentation updated
- ✅ Package builds and installs correctly
If you're upgrading from v0.3.0, simply replace:
welch_ttest_one_samplewithone_twelch_ttest_two_samplewithtwo_t
All parameters and return values remain unchanged.