Compare Stock Prices within 9 Rows Python Code

Investing stocks is a good way to protect your money from inflation and taxes. But it is also very risky. Wisely picking your portfolio is crucial when you invest in stock market.

By Python coding, you can compare stock prices, calculate returns and optimize your portfolio to maximize profit with lower risk.

The following is an example of comparing the stock prices of the 5 big banks from Canada in 2020. Within only 9 rows python code, we can set all the starting price to 100 and then draw the trends to compare them. (BTW, CIBC is always on the top of my portfolio)

Wanna know more? Come to Spark Data and way more to come:)

Responses

error: Content is protected !!