Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_generate_id_within_group(dataframe, expected):
assert (datacompy.core.generate_id_within_group(dataframe, ["a", "b"]) == expected).all()