@rich_fl wrote:
hello all,
I’m new to Python, hope someone can shed some light on this error and how python works.
I’m getting the error below when i run linear.fit(X_train, Y_train) where Electronic is a name of a column in my dataframe. I get it with other categorical columns as well.ValueError: could not convert string to float: 'Electronic’
Does this mean I have to convert all my predictors to numeric values before I can run any model in Python?
Will a model ever run without converting predictors to numerical values?
Thanks!
Posts: 1
Participants: 1