Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove impossible test scenario
  • Loading branch information
microslaw committed Jul 8, 2025
commit d18c74b7dfd9a2a121fd9f50c7bc7786abda9cbb
3 changes: 0 additions & 3 deletions pandas/tests/frame/methods/test_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@ def test_sample_invalid_weight_lengths(self, obj):
with pytest.raises(ValueError, match=msg):
obj.sample(n=3, weights=[0.5] * 11)

with pytest.raises(ValueError, match="Fewer non-zero entries in p than size"):
obj.sample(n=4, weights=Series([0, 0, 0.2]))

def test_sample_negative_weights(self, obj):
# Check won't accept negative weights
bad_weights = [-0.1] * 10
Expand Down