You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I feel like I have to be missing something here.. this seems too obvious of an issue.
In to_log_returns() the statement is:
np.log(prices / prices.shift(1))
.shift produces NaN as the first element. Passing this series to np.log() raises TypeError because numpy can't handle the NaN. Am I missing something or is this an actual issue?
The text was updated successfully, but these errors were encountered:
I feel like I have to be missing something here.. this seems too obvious of an issue.
In to_log_returns() the statement is:
np.log(prices / prices.shift(1))
.shift produces NaN as the first element. Passing this series to np.log() raises TypeError because numpy can't handle the NaN. Am I missing something or is this an actual issue?
The text was updated successfully, but these errors were encountered: