Skip to content

Commit

Permalink
fix: input dataframe prep col types
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaphoenix committed Aug 27, 2024
1 parent afc0d0c commit d772bb5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dfcx_scrapi/tools/evaluations.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,9 +513,8 @@ def validate_and_prep_inputs(self, df: pd.DataFrame) -> pd.DataFrame:

# fill remaining NA with empty string
for col in df.columns:
if df[col].dtype == "object":
if df[col].dtype in ["object", "string"]:
df[col] = df[col].fillna("")
# df.fillna("", inplace=True)

return df

Expand Down

0 comments on commit d772bb5

Please sign in to comment.