Finance: Analyzing stock fundamentals, yahoo_fin ver. 3

Last Updated on September 4, 2021 by shibatau

I. What do you learn?


You will learn about Fundamental Analysis and how to build market indexes with Python using the following article as a reference.  


Automating Stock Investing Fundamental Analysis With Python


Select the items in red squares on the Statistics page in Yahoo Finance and create a data frame with Python


The following data frame will be created though I haven’t get it yet.


On Google Colaboratory you can see all of my scripts though they are not completed.


II.Valuation measures


Let’s get the Toyota Market Capitalization with yahoo_fin as a sample.


# Toyota Motor Corporation (TM)
import yahoo_fin.stock_info as si
import pandas as pd



1.Market Capitalization


The market capitalization measures the size of a company. You can use the market cap to categorize a company into a large, medium, or small-sized company category.


2.PS Ratio (ttm)


The price-to-sales (P/S) ratio is a valuation ratio that compares a company’s stock price to its sales. It is measured on a TTM basis. TTM means trailing twelve month.


To be continued.

About shibatau

I was born and grown up in Kyoto. I studied western philosophy at the University and specialized in analytic philosophy, especially Ludwig Wittgenstein at the postgraduate school. I'm interested in new technology, especially machine learning and have been learning R language for two years and began to learn Python last summer. Listening toParamore, Sia, Amazarashi and MIyuki Nakajima. Favorite movies I've recently seen: "FREEHELD". Favorite actors and actresses: Anthony Hopkins, Denzel Washington, Ellen Page, Meryl Streep, Mia Wasikowska and Robert DeNiro. Favorite books: Fyodor Mikhailovich Dostoyevsky, "The Karamazov Brothers", Shinran, "Lamentations of Divergences". Favorite phrase: Salvation by Faith. Twitter: @shibatau

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.