Last active
September 24, 2020 11:39
-
-
Save yuyasugano/c9b856df298cf2738b104359591240d7 to your computer and use it in GitHub Desktop.
Pandas rolling std for financial assets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%matplotlib inline | |
fig = plt.figure(figsize=(15, 7)) | |
ax2 = fig.add_subplot(1, 1, 1) | |
rolling_std.plot(ax=ax2) | |
ax2.set_xlabel('Date') | |
ax2.set_ylabel('21days rolling standard deviation') | |
ax2.set_title('21days rolling standard deviation of financial assets') | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment