|
|
|
@ -81,7 +81,6 @@ Since you'll use Scikit-learn, there's no reason to do this by hand (although yo
|
|
|
|
|
```python
|
|
|
|
|
from sklearn.preprocessing import LabelEncoder
|
|
|
|
|
|
|
|
|
|
new_pumpkins.iloc[:, 0:-1] = new_pumpkins.iloc[:, 0:-1].apply(LabelEncoder().fit_transform)
|
|
|
|
|
new_pumpkins.iloc[:, 0:-1] = new_pumpkins.iloc[:, 0:-1].apply(LabelEncoder().fit_transform)
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
@ -329,4 +328,4 @@ In this lesson we learned about Linear Regression. There are other important typ
|
|
|
|
|
|
|
|
|
|
## Assignment
|
|
|
|
|
|
|
|
|
|
[Build a Model](assignment.md)
|
|
|
|
|
[Build a Model](assignment.md)
|
|
|
|
|