Skip to content

Rename wts to weights and allow passing variable name to it#631

Open
nalimilan wants to merge 2 commits intomasterfrom
nl/weightsarg
Open

Rename wts to weights and allow passing variable name to it#631
nalimilan wants to merge 2 commits intomasterfrom
nl/weightsarg

Conversation

@nalimilan
Copy link
Member

@nalimilan nalimilan commented Jan 3, 2026

This is particularly useful when some observations are dropped because of missing values. Also rename some internal arguments and variables.

Drop support for non-AbstractWeights (which was deprecated in 1.9.1) but continue printing a helpful error message.

Supersedes #570
Fixes #255
Fixes #350

Cc: @gragusa

This is particularly useful when some observations are dropped because
of missing values. Also rename some internal arguments and variables.

Drop support for non-`AbstractWeights` (which was deprecated in 1.9.1) but
continue printing a helpful error message.
@nalimilan nalimilan requested a review from andreasnoack January 3, 2026 15:52
@nalimilan nalimilan added this to the Release 2.0 milestone Jan 3, 2026
@codecov
Copy link

codecov bot commented Jan 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.18%. Comparing base (25cbf29) to head (9e78a70).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #631      +/-   ##
==========================================
+ Coverage   96.93%   97.18%   +0.25%     
==========================================
  Files           8        8              
  Lines        1206     1207       +1     
==========================================
+ Hits         1169     1173       +4     
+ Misses         37       34       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change wts keyword argument name to weights wts option doesn't automatically subset when a DataFrame has missing values

1 participant