Skip to content

Commit 7c4c6b8

Browse files
Ch10 of v2.2
1 parent 2610690 commit 7c4c6b8

File tree

2 files changed

+1388
-516
lines changed

2 files changed

+1388
-516
lines changed

Ch10-deeplearning-lab.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,9 +1630,9 @@ For a categorical series in `pandas`, we can form the indicators
16301630
using the `get_dummies()` method.
16311631

16321632
```{python}
1633-
X_day = pd.merge(X,
1634-
pd.get_dummies(NYSE['day_of_week']),
1635-
on='date')
1633+
X_day = pd.concat([X,
1634+
pd.get_dummies(NYSE['day_of_week'])],
1635+
axis=1).dropna()
16361636
```
16371637
Note that we do not have
16381638
to reinstantiate the linear regression model

0 commit comments

Comments
 (0)