Skip to content

Commit 90e6915

Browse files
committed
make first value b
1 parent 103b542 commit 90e6915

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/nested_pandas/utils/test_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_count_nested(join):
1515
data={
1616
"c": [0, 2, 4, 1, np.nan, 3, 1, 4, 1],
1717
"d": [5, 4, 7, 5, 3, 1, 9, 3, 4],
18-
"label": ["a", "a", "b", "b", "a", "a", "b", "a", "b"],
18+
"label": ["b", "a", "b", "b", "a", "a", "b", "a", "b"],
1919
},
2020
index=[0, 0, 0, 1, 1, 1, 2, 2, 2],
2121
)
@@ -28,8 +28,8 @@ def test_count_nested(join):
2828
# Test count by
2929
label_counts = count_nested(base, "nested", by="label", join=join)
3030

31-
assert all(label_counts["n_nested_a"].values == [2, 2, 1])
32-
assert all(label_counts["n_nested_b"].values == [1, 1, 2])
31+
assert all(label_counts["n_nested_a"].values == [1, 2, 1])
32+
assert all(label_counts["n_nested_b"].values == [2, 1, 2])
3333

3434
# Make sure the ordering is alphabetical
3535
# https://github.com/lincc-frameworks/nested-pandas/issues/109

0 commit comments

Comments
 (0)