From 328b6c4ac3ae63e33aab089829bb62101b6fc23b Mon Sep 17 00:00:00 2001 From: marcinpurtak Date: Tue, 19 Nov 2024 10:08:48 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20=20Comments=20speeling=20changed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/viadot/sources/sap_rfc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/viadot/sources/sap_rfc.py b/src/viadot/sources/sap_rfc.py index 39dc37249..6c089c868 100755 --- a/src/viadot/sources/sap_rfc.py +++ b/src/viadot/sources/sap_rfc.py @@ -1053,11 +1053,11 @@ def _adjust_whitespaces(self, df: pd.DataFrame) -> pd.DataFrame: # dtype characters amount rfc_unique_column_len = self._rfc_unique_id_len[rfc_unique_col] actual_length_of_field = df[rfc_unique_col].str.len() - # Check which rows column values has less characters - # than is defined in SAP data type for each column + # Check which rows have fewer characters + # than specified in the column data type. rows_missing_whitespaces = actual_length_of_field < rfc_unique_column_len if any(rows_missing_whitespaces): - # Check how many whitespaces are missing for each row column value + # Check how many whitespaces are missing in each row. logger.info(f"Adding whitespaces for {rfc_unique_col} column") n_missing_whitespaces = rfc_unique_column_len - actual_length_of_field df.loc[rows_missing_whitespaces, rfc_unique_col] += np.char.multiply(