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(