Ch10 of v2.2

This commit is contained in:
Jonathan Taylor
2024-06-04 19:38:29 -07:00
parent 2610690352
commit 7c4c6b821e
2 changed files with 1458 additions and 586 deletions

View File

@@ -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