When applying this decision tree algothrim on the data, I am facing the below mentioned error- Can anyone help resolving this?
from sklearn.tree import DecisionTreeRegressor
regressor = DecisionTreeRegressor()
regressor.fit(X_train, y_train)
Error: ValueError: Input contains NaN, infinity or a value too large for dtype('float32').