From c74367f8b7384b4bc4ce32c1b3971c58e503efa8 Mon Sep 17 00:00:00 2001 From: rziemianek Date: Fri, 4 Oct 2024 08:07:08 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Changed=20to=20`map`=20and=20add?= =?UTF-8?q?ed=20`super()`=20in=20to=5Fdf=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/viadot/sources/azure_sql.py | 2 +- src/viadot/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/viadot/sources/azure_sql.py b/src/viadot/sources/azure_sql.py index 7aff0258b..e6570b83a 100644 --- a/src/viadot/sources/azure_sql.py +++ b/src/viadot/sources/azure_sql.py @@ -154,7 +154,7 @@ def to_df( remove_special_characters. If None whole data frame will be processed. Defaults to None. """ - df = self.to_df(query=query, if_empty=if_empty) + df = super().to_df(query=query, if_empty=if_empty) if convert_bytes: df = df_converts_bytes_to_int(df=df) diff --git a/src/viadot/utils.py b/src/viadot/utils.py index d951f738c..ec581d9cd 100644 --- a/src/viadot/utils.py +++ b/src/viadot/utils.py @@ -973,7 +973,7 @@ def df_converts_bytes_to_int(df: pd.DataFrame) -> pd.DataFrame: Returns: pd.DataFrame: Data Frame after convert """ - return df.applymap(lambda x: int(x) if isinstance(x, bytes) else x) + return df.map(lambda x: int(x) if isinstance(x, bytes) else x) def df_clean_column(