Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 13, 2023
1 parent 0481599 commit 17f5a5d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion sheetwork/core/sheetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Expand Down
1 change: 0 additions & 1 deletion sheetwork/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17f5a5d

Please sign in to comment.