From 105f461820a2b6201c5a8a9d7b4d17ca323836b6 Mon Sep 17 00:00:00 2001 From: Marcin Purtak <44641138+marcinpurtak@users.noreply.github.com> Date: Mon, 30 Sep 2024 10:25:26 +0200 Subject: [PATCH] Removed whitespaces removal (#1065) --- src/viadot/sources/sap_rfc.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/viadot/sources/sap_rfc.py b/src/viadot/sources/sap_rfc.py index cf2ab2b23..2fd0d08b2 100755 --- a/src/viadot/sources/sap_rfc.py +++ b/src/viadot/sources/sap_rfc.py @@ -1136,12 +1136,6 @@ def to_df(self, tests: dict | None = None) -> pd.DataFrame: # noqa: C901, PLR09 ): df_tmp = pd.DataFrame(columns=fields) df_tmp[fields] = records - # SAP adds whitespaces to the first extracted column value. - # If whitespace is in unique column, it must be removed to make - # a proper merge. - for col in self.rfc_unique_id: - df_tmp[col] = df_tmp[col].str.strip() - df[col] = df[col].str.strip() df = pd.merge(df, df_tmp, on=self.rfc_unique_id, how="outer") elif not start: df[fields] = records