Skip to content

Commit

Permalink
fix(eda): change dtype 'string' to 'object'
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhenmao authored Sep 30, 2020
1 parent df32e1d commit aaa0df2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dataprep/eda/distribution/compute/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ def compute(
dtype = {"a": Continuous(), "b": "nominal"}
or dtype = Continuous() or dtype = "Continuous" or dtype = Continuous()
""" # pylint: disable=too-many-locals

for col in df:
if df[col].dtype=='string':
df[col] = df[col].astype('object')

df = to_dask(df)
df.columns = df.columns.astype(str)
Expand Down

0 comments on commit aaa0df2

Please sign in to comment.