From d9a52915aae1daecb8f2c531e850d0d1548fe101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Judith=20S=C3=A1inz-Pardo=20D=C3=ADaz?= Date: Mon, 13 May 2024 13:57:57 +0200 Subject: [PATCH] style: update docstrings in utils --- anjana/anonymity/utils/utils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/anjana/anonymity/utils/utils.py b/anjana/anonymity/utils/utils.py index 08f0eee..47126ba 100644 --- a/anjana/anonymity/utils/utils.py +++ b/anjana/anonymity/utils/utils.py @@ -158,9 +158,12 @@ def generate_intervals( sup: typing.Union[int, float], step: int, ) -> list: - """Given a quasi-identifier of numeric type, creates a list containing an + """ + Generate intervals as hierarchies. + + Given a quasi-identifier of numeric type, creates a list containing an interval-based generalization (hierarchy) of the values of the quasi-identifier. - The intervals will have the length entered in the parameter step. + The intervals will have the length entered in step. :param quasi_ident: values of the quasi-identifier on which the interval-based generalization is to be obtained