practical-machine-learning-with-python
practical-machine-learning-with-python copied to clipboard
Bug-Fix Issue-#29
#29 Issue
Errors:
- AttributeError: 'Series' object has no attribute 'ix'
- TypeError: Addition/subtraction of integers and integer-arrays with Timestamp is no longer supported. Instead of adding/subtracting
n, usen * obj.freq
Changes made in : File Location
Changes made:
- Replaced .ix with .iloc (as per pandas updated version)
Line-163
plt.plot((np.exp(train_series.ix[1:].tolist())-\
np.exp(insample_fit)))
Line 119 & 120:
train_series = series.ix[train_index]
test_series = series.ix[test_index]
- Line-160 to 162:
Changed From:
insample_fit = list(results.predict(train_series.index.min()+1,
train_series.index.max(),
typ='levels'))
To
insample_fit = list(results.predict(train_series.index.min() + 1*train_series.index.freq,
train_series.index.max(),
typ='levels'))
I'm a little late to the party, but I noticed you all aren't using a notebook review tool and wanted to invite you to review this pull request with GitNotebooks: https://gitnotebooks.com/dipanjanS/practical-machine-learning-with-python/pull/37
It lets you do things like comment on rendered markdown and code cells, so might be an easy win for your PR reviews.