I am trying out Create ML for the first time and I am trying to use a CSV file. Problem is that the CSV column for the target is a float type. It only accepts int or string. So, I used pandas to convert the column to a string with:
df.pris_yrs = df.pris_yrs.astype(str)
# I have also tried
df.pris_yrs = df.pris_yrs.apply(str)
Checking the dtype of the dataframe returns an object which is also a string in Pandas, but Create ML still is having the same error.
Question: How do I get an a dataframe object to work as the target in Create ML?