From 17f5a5dab2c880ab5693a83da1c182ccffefef88 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 20:30:55 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- sheetwork/core/sheetwork.py | 1 - sheetwork/core/utils.py | 1 - 2 files changed, 2 deletions(-) diff --git a/sheetwork/core/sheetwork.py b/sheetwork/core/sheetwork.py index 3e6176f..75ed836 100644 --- a/sheetwork/core/sheetwork.py +++ b/sheetwork/core/sheetwork.py @@ -197,7 +197,6 @@ def _collect_and_check_answer(post_cleanup: bool = False): @staticmethod def _show_dry_run_preview(sheet_df: pandas.DataFrame): - print("\nDataFrame DataTypes: \n\n" + str(sheet_df.dtypes)) print("\nDataFrame Header: \n\n" + str(sheet_df.head(10))) diff --git a/sheetwork/core/utils.py b/sheetwork/core/utils.py index 2161cc6..237a541 100644 --- a/sheetwork/core/utils.py +++ b/sheetwork/core/utils.py @@ -253,7 +253,6 @@ def handle_booleans(df: pandas.DataFrame, overwrite_dict: Dict[str, str]) -> pan "": pandas.NA, } for column, data_type in overwrite_dict.items(): - if data_type == "boolean" and df[column].dtypes == "object": if not df[column].map(type).eq(str).all(): # in this case we need to convert all of the items to strings