Ch10 of v2.2
This commit is contained in:
@@ -1630,9 +1630,9 @@ For a categorical series in `pandas`, we can form the indicators
|
|||||||
using the `get_dummies()` method.
|
using the `get_dummies()` method.
|
||||||
|
|
||||||
```{python}
|
```{python}
|
||||||
X_day = pd.merge(X,
|
X_day = pd.concat([X,
|
||||||
pd.get_dummies(NYSE['day_of_week']),
|
pd.get_dummies(NYSE['day_of_week'])],
|
||||||
on='date')
|
axis=1).dropna()
|
||||||
```
|
```
|
||||||
Note that we do not have
|
Note that we do not have
|
||||||
to reinstantiate the linear regression model
|
to reinstantiate the linear regression model
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user