PEG Ratio #43
bwzheng2010
announced in
Financial Terms
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
📈 Price/Earnings-to-Growth (PEG) Ratio
1. What is the PEG Ratio?
The PEG Ratio enhances the traditional Price-to-Earnings (P/E) Ratio by incorporating a company’s growth rate.
2. How to Get PEG Ratio Using
defeatbeta-apiExample Output
3. How
defeatbeta-apiImplements the PEG RatioThe method
Ticker.peg_ratio()calculates two types of PEG ratios:Inputs:
ttm_pe()quarterly_eps_yoy_growth()quarterly_revenue_yoy_growth()Aligning Data:
datetime64[ns].pandas.merge_asofis used withdirection="backward"to align the closest growth rates with the P/E data.PEG by EPS Growth:
PEG by Revenue Growth:
Final Output:
peg_ratio_by_epsandpeg_ratio_by_revenue.Beta Was this translation helpful? Give feedback.
All reactions