Ch10 of v2.2

This commit is contained in:
Jonathan Taylor committed 2024-06-04 19:38:29 -07:00
1 parent 2610690352
commit 7c4c6b821e
2 files changed
+1458 -586

No files matched your search

+3 -3
View File
@@ -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
View File
File diff suppressed because it is too large. Load diff