Skip to content

Commit

Permalink
Dont convert bool columns (To add string column)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maluuck committed Nov 2, 2023
1 parent 4cb24ee commit c3347e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion db/scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,9 @@ def get_values_reformat(df: pd.DataFrame, match: list):
"""
values = list(set(list(df.columns)) - set(match))
reformat = [
(i, "toFloat" if df[i].dtype == "float64" else "toInteger") for i in list(df.columns) if df[i].dtype != "object"
(i, "toFloat" if df[i].dtype == "float64" else "toInteger")
for i in list(df.columns)
if df[i].dtype != "object" and df[i].dtype != "bool"
]
return values, reformat

Expand Down

0 comments on commit c3347e2

Please sign in to comment.