diff options
author | Tibor Frank <tifrank@cisco.com> | 2022-07-25 14:46:56 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2022-07-26 12:27:41 +0000 |
commit | 2f9e211bd097fdd2f83df540aa494d924df01c7d (patch) | |
tree | b4a8bb025e1f2fbe1cd1b97bcf5a025582619c24 /resources/tools/dash/app/pal/news/tables.py | |
parent | 7889544ddfba775bf07bcd331f022de4650e59dc (diff) |
UTI: code clean-up
Change-Id: I492370e20ad0e7431aaf86af618ed874104c4ad5
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/dash/app/pal/news/tables.py')
-rw-r--r-- | resources/tools/dash/app/pal/news/tables.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/resources/tools/dash/app/pal/news/tables.py b/resources/tools/dash/app/pal/news/tables.py index 6272814165..1a6c7d2556 100644 --- a/resources/tools/dash/app/pal/news/tables.py +++ b/resources/tools/dash/app/pal/news/tables.py @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -""" +"""The tables with news. """ import pandas as pd @@ -21,7 +21,16 @@ from ..utils.constants import Constants as C def table_news(data: pd.DataFrame, job: str) -> list: - """ + """Generates the tables with news: + 1. Falied tests from the last run + 2. Regressions and progressions calculated from the last C.NEWS_TIME_PERIOD + days. + + :param data: Trending data with calculated annomalies to be displayed in the + tables. + :param job: The job name. + :type data: pandas.DataFrame + :type job: str """ job_data = data.loc[(data["job"] == job)] |