Skip to content

Commit

Permalink
Changed removal of whitespaces to only first row
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinpurtak committed Sep 26, 2024
1 parent 2550b7b commit d521a5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/viadot/sources/sap_rfc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,8 +1140,8 @@ def to_df(self, tests: dict | None = None) -> pd.DataFrame: # noqa: C901, PLR09
# 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_tmp[col][0] = df_tmp[col][0].str.strip()
df[col][0] = df[col][0].str.strip()
df = pd.merge(df, df_tmp, on=self.rfc_unique_id, how="outer")
elif not start:
df[fields] = records
Expand Down

0 comments on commit d521a5b

Please sign in to comment.