We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 103b542 commit 90e6915Copy full SHA for 90e6915
tests/nested_pandas/utils/test_utils.py
@@ -15,7 +15,7 @@ def test_count_nested(join):
15
data={
16
"c": [0, 2, 4, 1, np.nan, 3, 1, 4, 1],
17
"d": [5, 4, 7, 5, 3, 1, 9, 3, 4],
18
- "label": ["a", "a", "b", "b", "a", "a", "b", "a", "b"],
+ "label": ["b", "a", "b", "b", "a", "a", "b", "a", "b"],
19
},
20
index=[0, 0, 0, 1, 1, 1, 2, 2, 2],
21
)
@@ -28,8 +28,8 @@ def test_count_nested(join):
28
# Test count by
29
label_counts = count_nested(base, "nested", by="label", join=join)
30
31
- assert all(label_counts["n_nested_a"].values == [2, 2, 1])
32
- assert all(label_counts["n_nested_b"].values == [1, 1, 2])
+ assert all(label_counts["n_nested_a"].values == [1, 2, 1])
+ assert all(label_counts["n_nested_b"].values == [2, 1, 2])
33
34
# Make sure the ordering is alphabetical
35
# https://github.com/lincc-frameworks/nested-pandas/issues/109
0 commit comments