From 8e6aa3a56cb0bfde44d78b8061ba6d039867810d Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 15 Mar 2022 14:28:18 +0000 Subject: [PATCH 1/2] chore(deps): update dependency pandas to v1.4.1 --- scripts/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/requirements.txt b/scripts/requirements.txt index 416be5ae7dd..c9ceee35e0e 100644 --- a/scripts/requirements.txt +++ b/scripts/requirements.txt @@ -1 +1 @@ -pandas==1.3.5 +pandas==1.4.1 From af58541a0e231f64a9c62c4c195ab9ef556e37c8 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Tue, 15 Mar 2022 22:32:13 +0000 Subject: [PATCH 2/2] chore: migrate to pd.concat --- scripts/changesummary.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/changesummary.py b/scripts/changesummary.py index b95ea6f5d84..7375a023b98 100644 --- a/scripts/changesummary.py +++ b/scripts/changesummary.py @@ -509,13 +509,14 @@ def detect_discovery_changes(self): result = pd.DataFrame() # Process files in parallel to improve performance with Pool(processes=MULTIPROCESSING_NUM_AGENTS) as pool: - result = result.append( - pool.map( - self._get_discovery_differences, - self._file_list, - MULTIPROCESSING_NUM_PER_BATCH, + if len(self._file_list): + result = pd.concat( + pool.map( + self._get_discovery_differences, + self._file_list, + MULTIPROCESSING_NUM_PER_BATCH, + ) ) - ) if len(result): # Sort the resulting dataframe by `Name`, `Version`, `ChangeType`