Ch10 of v2.2
This commit is contained in:
1 parent
2610690352
commit
7c4c6b821e
2 files changed
+1458
-586
No files matched your search
@@ -1630,9 +1630,9 @@ For a categorical series in `pandas`, we can form the indicators
|
||||
using the `get_dummies()` method.
|
||||
|
||||
```{python}
|
||||
X_day = pd.merge(X,
|
||||
pd.get_dummies(NYSE['day_of_week']),
|
||||
on='date')
|
||||
X_day = pd.concat([X,
|
||||
pd.get_dummies(NYSE['day_of_week'])],
|
||||
axis=1).dropna()
|
||||
```
|
||||
Note that we do not have
|
||||
to reinstantiate the linear regression model
|
||||
|
||||
+1455
-583
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user