diff --git a/src/viadot/sources/sap_rfc.py b/src/viadot/sources/sap_rfc.py index c2af30f42..8e034f543 100755 --- a/src/viadot/sources/sap_rfc.py +++ b/src/viadot/sources/sap_rfc.py @@ -1255,7 +1255,7 @@ def to_df(self, tests: dict = None): chunk += 1 elif not response["DATA"]: logger.warning("No data returned from SAP.") - df.columns = df.loc[:, columns] + df = df.loc[:, columns] if self.client_side_filters: filter_query = self._build_pandas_filter_query(self.client_side_filters)