Skip to content

Commit

Permalink
πŸ“ Comments speeling changed
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinpurtak committed Nov 19, 2024
1 parent 1362d28 commit 328b6c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/viadot/sources/sap_rfc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 328b6c4

Please sign in to comment.