Skip to content

Commit

Permalink
Ch10 of v2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-taylor committed Jun 5, 2024
1 parent 2610690 commit 7c4c6b8
Show file tree
Hide file tree
Showing 2 changed files with 1,388 additions and 516 deletions.
6 changes: 3 additions & 3 deletions Ch10-deeplearning-lab.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 7c4c6b8

Please sign in to comment.