{"id":4048,"date":"2024-01-05T08:40:44","date_gmt":"2024-01-05T08:40:44","guid":{"rendered":"https:\/\/eodhd.com\/financial-academy\/?p=4048"},"modified":"2025-02-05T11:47:54","modified_gmt":"2025-02-05T11:47:54","slug":"dividend-cuts-analysis-using-python-and-deep-learning","status":"publish","type":"post","link":"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning","title":{"rendered":"Dividend Cuts Analysis Using Python and Deep Learning"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.investopedia.com\/terms\/d\/dividendyield.asp\" target=\"_blank\" rel=\"noreferrer noopener\">Dividend analysis<\/a> stands as a cornerstone for making informed investment decisions. It&#8217;s not just about identifying stocks with high dividend yields. It involves understanding the stability and sustainability of these dividends over time. This insight is crucial for long-term investment strategies, especially in volatile markets.<\/p>\n\n\n\n<p>This article will deep dive into the <a href=\"https:\/\/eodhd.com\/financial-academy\/financial-faq\/understanding-dividends\/\" target=\"_blank\" rel=\"noreferrer noopener\">dividend data<\/a> analysis. We will explore different features of dividend data, process them and then finally calculate necessary metrics required to perform dividend anaysis using python programming. <\/p>\n\n\n\n<p>Python&#8217;s powerful libraries and frameworks simplify complex financial analyses. Deep learning, which is a subset of machine learning, further elevates this analysis. It uncovers patterns in vast datasets, impossible for human analysts to detect. These patterns can predict future dividend behaviors, offering a significant edge in trading.<\/p>\n\n\n\n<p class=\"has-text-align-center\"><a class=\"maxbutton-1 maxbutton maxbutton-subscribe-to-api external-css btn\" href=\"https:\/\/eodhd.com\/register\"><span class='mb-text'>Register &amp; Get Data<\/span><\/a><\/p>\n\n\n\n\n\n\n<p>Central to our discussion is the EOD Historical Data (EODHD) API. This API provides extensive financial data, including dividend histories which is crucial for our analysis. By combining Python\u2019s analytical prowess with deep learning algorithms and the rich real time financial data from EODHD API, we can gain great insights from the dividend data. These insights enable traders to make more nuanced, data-driven decisions.<\/p>\n\n\n\n<p>As we delve deeper into this topic, we&#8217;ll explore how to leverage these tools effectively. Our goal is to enhance trading strategies through advanced dividend analysis.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-configuring-python-and-eodhd-api-for-dividend-data-analysis\"><strong>Configuring Python and EODHD API for Dividend Data Analysis<\/strong><\/h2>\n\n\n\n<p>To start, setting up Python for financial analysis is key. Install libraries like Pandas, NumPy, and Matplotlib. These are essential for handling and visualizing financial data. Next, integrate the EODHD API. It&#8217;s a treasure trove of financial data, crucial for dividend analysis.<\/p>\n\n\n\n<p>Here&#8217;s a basic guide to get you started with the EODHD API in Python:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-creating-a-python-virtual-environment\"><strong>Creating a Python Virtual Environment<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This isolates your project and its dependencies.<\/li>\n\n\n\n<li>Use commands like <code>python3 -m venv myenv<\/code> and <code>source myenv\/bin\/activate<\/code>.<\/li>\n<\/ul>\n\n\n\n<p>In place of &#8220;myenv&#8221; you can give your environment name. and then activate your environment. You can skip this step if you don&#8217;t like to create new environment and would like continue with your existing one.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-installing-the-eodhd-api-library\"><strong>Installing the EODHD API Library<\/strong><\/h3>\n\n\n\n<p>To fetch live\/real-time stock data, you will need to have this library installed. You can also use requests library in python by installing EODHD python library. It is recommended to do, as you will be able to explore many other relevant functionality that can help you in your analysis.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use pip to install: <code>pip install eodhd -U<\/code>.<\/li>\n\n\n\n<li>This command ensures you have the latest version.<\/li>\n<\/ul>\n\n\n\n<p>Similarly you can install other libraries like numpy, pandas, matplotlib and other necessary libraries.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-importing-necessary-libraries\"><strong>Importing Necessary Libraries<\/strong><\/h3>\n\n\n\n<p>Begin by importing libraries and the EODHD API client:<\/p>\n\n\n\n            <div class=\"code__wrapper\">\n                <div class=\"code__content\">\n                    \n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-4a280d261ba1645aede2a6eb4375af53\"><code lang=\"python\" class=\"language-python\">import pandas as pd\nimport numpy as np\nimport matplotlib.pyplot as plt\nfrom eodhd import APIClient\nimport requests<\/code><\/pre>\n\n                <\/div>\n                <div class=\"code__btns\">\n                    <button class=\"code__copy\" class=\"copy\" title=\"Copy url\">\n                        <svg class=\"code__copy__icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                        <\/svg>\n                        <img decoding=\"async\" class=\"code__copy__approve\" alt=\"\" src=\"\/img\/approve_ico.svg\" loading=\"eager\">\n                    <\/button>\n                <\/div>\n            <\/div>\n        \n\n\n<h3 class=\"wp-block-heading\" id=\"h-setting-up-the-eodhd-api-client\"><strong>Setting Up the EODHD API Client<\/strong><\/h3>\n\n\n\n<p>Now we can start using EODHD API to start our dividend analysis. Initialize the client with your API key. You can get access to this key from EODHD API access page.<\/p>\n\n\n\n            <div class=\"code__wrapper\">\n                <div class=\"code__content\">\n                    \n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-65b8fb3c307c4e84461648d4026b0e2b\"><code lang=\"python\" class=\"language-python\">api_key = \"Your_API_Key\"\nbase_url = 'https:\/\/eodhistoricaldata.com\/api'<\/code><\/pre>\n\n                <\/div>\n                <div class=\"code__btns\">\n                    <button class=\"code__copy\" class=\"copy\" title=\"Copy url\">\n                        <svg class=\"code__copy__icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                        <\/svg>\n                        <img decoding=\"async\" class=\"code__copy__approve\" alt=\"\" src=\"\/img\/approve_ico.svg\" loading=\"eager\">\n                    <\/button>\n                <\/div>\n            <\/div>\n        \n\n\n<p class=\"has-text-align-center\"><a class=\"maxbutton-1 maxbutton maxbutton-subscribe-to-api external-css btn\" href=\"https:\/\/eodhd.com\/register\"><span class='mb-text'>Register &amp; Get Data<\/span><\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-fetching-historical-dividend-data\"><strong>Fetching Historical Dividend Data<\/strong><\/h3>\n\n\n\n<p>You can use the following function to retrieve dividend data for any specific stock. Here I will be using Nvidia stock for further dividend analysis.<\/p>\n\n\n\n            <div class=\"code__wrapper\">\n                <div class=\"code__content\">\n                    \n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-4dec40251ce4b6b29c5687c387cc4759\"><code lang=\"python\" class=\"language-python\"># Function to fetch dividend data\ndef fetch_dividend_data(symbol):\n    endpoint = f\"{base_url}\/div\/{symbol}\"\n    params = {\n        'api_token': api_key,\n        'fmt': 'json'\n    }\n    response = requests.get(endpoint, params=params)\n    if response.status_code == 200:\n        return response.json()\n    else:\n        return None\n\nstock_symbol = 'NVDA'\n\ndividend_data = fetch_dividend_data(stock_symbol)\ndf_nvda = pd.DataFrame(dividend_data)<\/code><\/pre>\n\n                <\/div>\n                <div class=\"code__btns\">\n                    <button class=\"code__copy\" class=\"copy\" title=\"Copy url\">\n                        <svg class=\"code__copy__icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                        <\/svg>\n                        <img decoding=\"async\" class=\"code__copy__approve\" alt=\"\" src=\"\/img\/approve_ico.svg\" loading=\"eager\">\n                    <\/button>\n                <\/div>\n            <\/div>\n        \n\n\n<p>Now we have the dividend data for Nvidia. Here&#8217;s how our data looks like.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1330\" height=\"484\" src=\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/image-13.png\" alt=\"Dividend data demo\" class=\"wp-image-4422\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-data-preparation-and-visualization\"><strong>Data Preparation and Visualization<\/strong><\/h3>\n\n\n\n<p>Let&#8217;s now add some other features like year, and make some data processing. Here is the demo visualization that shows how dividend is changing throughout the years since 2012.<\/p>\n\n\n\n            <div class=\"code__wrapper\">\n                <div class=\"code__content\">\n                    \n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-436c7f0a489ea9c7a19d9d552f769e21\"><code lang=\"python\" class=\"language-python\">df_nvda['date'] = pd.to_datetime(df_nvda['date'])\ndf_nvda['paymentDate'] = pd.to_datetime(df_nvda['paymentDate'])\ndf_nvda.sort_values('date', inplace=True)\n\ndf_nvda['year'] = df_nvda['date'].dt.year\ndf['dividend_change'] = df.groupby('year')['value'].transform(lambda x: x.pct_change())\n\nplt.figure(figsize=(12,6))\nplt.plot(df_nvda['date'], df_nvda['dividend'], marker='o', color='b')\nplt.xlabel('Date')\nplt.ylabel('Dividend Value')\nplt.title('Quarterly Dividend Trend for NVDA')\nplt.grid(True)\nplt.show()<\/code><\/pre>\n\n                <\/div>\n                <div class=\"code__btns\">\n                    <button class=\"code__copy\" class=\"copy\" title=\"Copy url\">\n                        <svg class=\"code__copy__icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                        <\/svg>\n                        <img decoding=\"async\" class=\"code__copy__approve\" alt=\"\" src=\"\/img\/approve_ico.svg\" loading=\"eager\">\n                    <\/button>\n                <\/div>\n            <\/div>\n        \n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1010\" height=\"547\" src=\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/image-2.png\" alt=\"Dividend Change for NVDA\" class=\"wp-image-4348\"\/><\/figure>\n\n\n\n<p>The plot showcasing NVDA&#8217;s dividend change percentage reveals a series of notable spikes over the past decade. These spikes indicate years where NVDA has significantly increased its dividend payouts. The pattern is not uniform, suggesting that dividend increases are not merely a function of a consistent policy but are likely influenced by a variety of factors including financial performance, strategic decisions, and market conditions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-mathematical-foundations-of-dividend-analysis\"><strong>Mathematical Foundations of Dividend Analysis<\/strong><\/h2>\n\n\n\n<p>Delving into the mathematical aspects of dividend analysis, we focus on quantifiable metrics that shed light on a company&#8217;s dividend policies and stability. These metrics are pivotal for investors seeking to understand and forecast dividend distributions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-dividend-yield\"><strong>Dividend Yield<\/strong><\/h3>\n\n\n\n<p>The dividend yield is a financial metric indicating how much a company pays out in dividends each year relative to its share price. It&#8217;s expressed as a percentage and is a key indicator of the income an investment generates.<\/p>\n\n\n\n<p><em>Mathematical Formula:<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"844\" height=\"92\" src=\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/image-10.png\" alt=\"Dividend yield formula\" class=\"wp-image-4409\" style=\"width:415px;height:auto\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-payout-ratio\"><strong>Payout Ratio<\/strong><\/h3>\n\n\n\n<p>This ratio compares the total dividends paid to shareholders to the company&#8217;s net income, revealing how much income is being returned to shareholders versus being reinvested in the company.<\/p>\n\n\n\n<p><em>Mathematical Formula:<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"78\" src=\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/image-11.png\" alt=\"Payment ratio formula\" class=\"wp-image-4410\" style=\"width:417px;height:auto\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-dividend-growth-rate\"><strong>Dividend Growth Rate<\/strong><\/h3>\n\n\n\n<p>The dividend growth rate measures the year-over-year growth percentage of a company&#8217;s dividend, offering insight into the growth trend of a company&#8217;s payouts.<\/p>\n\n\n\n<p><em>Mathematical Formula:<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1092\" height=\"104\" src=\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/image-12.png\" alt=\"Dividend growth rate formula\" class=\"wp-image-4411\" style=\"width:424px;height:auto\"\/><\/figure>\n\n\n\n<p>For the EODHD API data, we can calculate these metrics using Python as follows:<\/p>\n\n\n\n            <div class=\"code__wrapper\">\n                <div class=\"code__content\">\n                    \n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-a3107914bad74e6145fafc8bdabd3863\"><code lang=\"python\" class=\"language-python\">def fetch_stock_price(symbol, api_token):\n    api = APIClient(api_token)\n    data = api.get_historical_data(symbol=symbol, interval=\"d\", iso8601_start=\"2012-01-01\")\n    return data\n\nstock_prices = fetch_stock_price('NVDA', api_key)\ndf_prices = pd.DataFrame(stock_prices)\ndf_prices.reset_index(inplace=True)\n\ndf_merged = pd.merge_asof(df.sort_values('date'), df_prices.sort_values('date'), on='date')\ndf_merged['dividend_yield'] = df_merged['value'] \/ df_merged['close']\n\n# Function to fetch annual earnings (net income) data\ndef fetch_annual_earnings(symbol, api_token):\n    income_statement_endpoint = f\"{base_url}\/fundamentals\/{symbol}\"\n    params = {\n        'api_token': api_token,\n        'fmt': 'json'\n    }\n    response = requests.get(income_statement_endpoint, params=params)\n    if response.status_code == 200:\n        # Extracting the annual income statement data\n        income_data = response.json()['Financials']['Income_Statement']['yearly']\n        return {year: data['netIncome'] for year, data in income_data.items()}\n    else:\n        return None\n\nnet_income_data = fetch_annual_earnings('NVDA', api_key)\nnet_income_data = {int(key.split(\"-\")[0]):int(float(value)) for key, value in net_income_data.items() if int(key.split(\"-\")[0]) &gt;= 2012}\n# Calculating the total dividends paid annually\nannual_dividends = df.groupby('year')['value'].sum()\n\n# Calculating the payout ratio\npayout_ratios = {}\nfor year, dividends in annual_dividends.items():\n    if year in net_income_data:\n        payout_ratios[year] = dividends \/ net_income_data[year]\n\ndividend_growth_rates = df['dividend_change'].dropna()\naverage_dividend_growth_rate = dividend_growth_rates.mean()<\/code><\/pre>\n\n                <\/div>\n                <div class=\"code__btns\">\n                    <button class=\"code__copy\" class=\"copy\" title=\"Copy url\">\n                        <svg class=\"code__copy__icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                        <\/svg>\n                        <img decoding=\"async\" class=\"code__copy__approve\" alt=\"\" src=\"\/img\/approve_ico.svg\" loading=\"eager\">\n                    <\/button>\n                <\/div>\n            <\/div>\n        \n\n\n<p>These python snippets help us calculate different metrics like dividend yield, payout ratio and dividend growth rate that helps in dividend analysis.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1350\" height=\"716\" src=\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/image-14.png\" alt=\"Dividend yield data\" class=\"wp-image-4426\" style=\"width:840px;height:auto\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"552\" height=\"496\" src=\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/image-15.png\" alt=\"Payout ratios for each previous years\" class=\"wp-image-4428\" style=\"width:303px;height:auto\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"586\" height=\"136\" src=\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/image-16.png\" alt=\"Avg dividend growth rates\" class=\"wp-image-4430\" style=\"width:346px;height:auto\"\/><\/figure>\n\n\n\n<p>In the end, we have all the necessary metrics that can help us in further analysis. <\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-exploring-future-possibilities-in-dividend-analysis\"><strong>Exploring Future Possibilities in Dividend Analysis<\/strong><\/h2>\n\n\n\n<p>As we have explored the in-depth process of calculating key financial metrics like dividend yield, payout ratio, and dividend growth rate, we&#8217;ve formed a solid foundation for advanced dividend analysis.<\/p>\n\n\n\n<p>With the help of these metrics, we can now perform the various following analysis:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Trend Analysis and Forecasting:<\/strong><br>Evaluating historical patterns and predicting future dividend behaviors, potentially incorporating machine learning and deep learning models.<\/li>\n\n\n\n<li><strong>Comparative Analysis:<\/strong><br>Benchmarking against industry standards or competitors to gauge a company&#8217;s performance relative to its peers.<\/li>\n\n\n\n<li><strong>Dividend Sustainability Studies:<\/strong><br>Assessing the long-term viability of a company&#8217;s dividend policy based on its payout ratio and financial stability.<\/li>\n\n\n\n<li><strong>Risk Assessment:<\/strong><br>Identifying potential risks in dividend cuts or inconsistencies and understanding the underlying causes.<\/li>\n\n\n\n<li><strong>Portfolio Optimization:<\/strong><br>Integrating these insights into investment strategies to build a dividend-focused portfolio that aligns with specific investment goals.<\/li>\n<\/ol>\n\n\n\n<p>In our upcoming articles, we will deep dive into these analysis using python programming, financial data analysis, and deep learning techniques.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dividend analysis stands as a cornerstone for making informed investment decisions. It&#8217;s not just about identifying stocks with high dividend yields. It involves understanding the stability and sustainability of these dividends over time. This insight is crucial for long-term investment strategies, especially in volatile markets. This article will deep dive into the dividend data analysis. [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":4049,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[42,61],"tags":[],"coding-language":[30],"ready-to-go-solution":[56],"qualification":[31,32],"financial-apis-category":[36],"financial-apis-manuals":[80],"class_list":["post-4048","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-stocks-data-analysis-examples","category-trading-indicators-implimentations","coding-language-python","ready-to-go-solution-eodhd-python-financial-library","qualification-experienced","qualification-guru","financial-apis-category-stock-market-prices","financial-apis-manuals-splits-dividends","has_thumb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.9 (Yoast SEO v26.7) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Dividend Analysis Using Python and Deep Learning<\/title>\n<meta name=\"description\" content=\"Dividend cuts analysis using python and deep learning. Calculating the necessary metrics using real time dividend data of the stock\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dividend Cuts Analysis Using Python and Deep Learning\" \/>\n<meta property=\"og:description\" content=\"Dividend cuts analysis using python and deep learning. Calculating the necessary metrics using real time dividend data of the stock\" \/>\n<meta property=\"og:url\" content=\"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning\" \/>\n<meta property=\"og:site_name\" content=\"Financial Academy\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/eodhistoricaldata\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-05T08:40:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-05T11:47:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/11\/pexels-markus-winkler-18512835.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"3999\" \/>\n\t<meta property=\"og:image:height\" content=\"2667\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Pranjal Saxena\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EOD_data\" \/>\n<meta name=\"twitter:site\" content=\"@EOD_data\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pranjal Saxena\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning#article\",\"isPartOf\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning\"},\"author\":{\"name\":\"Pranjal Saxena\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/b8a8e736d4c1c454d15032c0558d3dd5\"},\"headline\":\"Dividend Cuts Analysis Using Python and Deep Learning\",\"datePublished\":\"2024-01-05T08:40:44+00:00\",\"dateModified\":\"2025-02-05T11:47:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning\"},\"wordCount\":992,\"publisher\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#organization\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning#primaryimage\"},\"thumbnailUrl\":\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/11\/pexels-markus-winkler-18512835.jpg\",\"articleSection\":[\"Stocks Data Analysis Examples\",\"Trading Indicators Implimentations\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning\",\"name\":\"Dividend Analysis Using Python and Deep Learning\",\"isPartOf\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning#primaryimage\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning#primaryimage\"},\"thumbnailUrl\":\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/11\/pexels-markus-winkler-18512835.jpg\",\"datePublished\":\"2024-01-05T08:40:44+00:00\",\"dateModified\":\"2025-02-05T11:47:54+00:00\",\"description\":\"Dividend cuts analysis using python and deep learning. Calculating the necessary metrics using real time dividend data of the stock\",\"breadcrumb\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning#primaryimage\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/11\/pexels-markus-winkler-18512835.jpg\",\"contentUrl\":\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/11\/pexels-markus-winkler-18512835.jpg\",\"width\":3999,\"height\":2667},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/eodhd.com\/financial-academy\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dividend Cuts Analysis Using Python and Deep Learning\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#website\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/\",\"name\":\"Financial APIs Academy | EODHD\",\"description\":\"Financial Stock Market Academy\",\"publisher\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/eodhd.com\/financial-academy\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#organization\",\"name\":\"EODHD (EOD Historical Data)\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png\",\"contentUrl\":\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png\",\"width\":159,\"height\":82,\"caption\":\"EODHD (EOD Historical Data)\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/eodhistoricaldata\",\"https:\/\/x.com\/EOD_data\",\"https:\/\/www.reddit.com\/r\/EODHistoricalData\/\",\"https:\/\/eod-historical-data.medium.com\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/b8a8e736d4c1c454d15032c0558d3dd5\",\"name\":\"Pranjal Saxena\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b41cf6c8f3c0cd0d497cd413e8493735aa0e84cc96c39426ea7b4a3be762d61d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b41cf6c8f3c0cd0d497cd413e8493735aa0e84cc96c39426ea7b4a3be762d61d?s=96&d=mm&r=g\",\"caption\":\"Pranjal Saxena\"},\"url\":\"https:\/\/eodhd.com\/financial-academy\/author\/pranjalsaxena\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Dividend Analysis Using Python and Deep Learning","description":"Dividend cuts analysis using python and deep learning. Calculating the necessary metrics using real time dividend data of the stock","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning","og_locale":"en_US","og_type":"article","og_title":"Dividend Cuts Analysis Using Python and Deep Learning","og_description":"Dividend cuts analysis using python and deep learning. Calculating the necessary metrics using real time dividend data of the stock","og_url":"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning","og_site_name":"Financial Academy","article_publisher":"https:\/\/www.facebook.com\/eodhistoricaldata","article_published_time":"2024-01-05T08:40:44+00:00","article_modified_time":"2025-02-05T11:47:54+00:00","og_image":[{"width":3999,"height":2667,"url":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/11\/pexels-markus-winkler-18512835.jpg","type":"image\/jpeg"}],"author":"Pranjal Saxena","twitter_card":"summary_large_image","twitter_creator":"@EOD_data","twitter_site":"@EOD_data","twitter_misc":{"Written by":"Pranjal Saxena","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning#article","isPartOf":{"@id":"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning"},"author":{"name":"Pranjal Saxena","@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/b8a8e736d4c1c454d15032c0558d3dd5"},"headline":"Dividend Cuts Analysis Using Python and Deep Learning","datePublished":"2024-01-05T08:40:44+00:00","dateModified":"2025-02-05T11:47:54+00:00","mainEntityOfPage":{"@id":"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning"},"wordCount":992,"publisher":{"@id":"https:\/\/eodhd.com\/financial-academy\/#organization"},"image":{"@id":"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning#primaryimage"},"thumbnailUrl":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/11\/pexels-markus-winkler-18512835.jpg","articleSection":["Stocks Data Analysis Examples","Trading Indicators Implimentations"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning","url":"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning","name":"Dividend Analysis Using Python and Deep Learning","isPartOf":{"@id":"https:\/\/eodhd.com\/financial-academy\/#website"},"primaryImageOfPage":{"@id":"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning#primaryimage"},"image":{"@id":"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning#primaryimage"},"thumbnailUrl":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/11\/pexels-markus-winkler-18512835.jpg","datePublished":"2024-01-05T08:40:44+00:00","dateModified":"2025-02-05T11:47:54+00:00","description":"Dividend cuts analysis using python and deep learning. Calculating the necessary metrics using real time dividend data of the stock","breadcrumb":{"@id":"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning#primaryimage","url":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/11\/pexels-markus-winkler-18512835.jpg","contentUrl":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/11\/pexels-markus-winkler-18512835.jpg","width":3999,"height":2667},{"@type":"BreadcrumbList","@id":"https:\/\/eodhd.com\/financial-academy\/stocks-data-analysis-examples\/dividend-cuts-analysis-using-python-and-deep-learning#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/eodhd.com\/financial-academy\/"},{"@type":"ListItem","position":2,"name":"Dividend Cuts Analysis Using Python and Deep Learning"}]},{"@type":"WebSite","@id":"https:\/\/eodhd.com\/financial-academy\/#website","url":"https:\/\/eodhd.com\/financial-academy\/","name":"Financial APIs Academy | EODHD","description":"Financial Stock Market Academy","publisher":{"@id":"https:\/\/eodhd.com\/financial-academy\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/eodhd.com\/financial-academy\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/eodhd.com\/financial-academy\/#organization","name":"EODHD (EOD Historical Data)","url":"https:\/\/eodhd.com\/financial-academy\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/logo\/image\/","url":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png","contentUrl":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png","width":159,"height":82,"caption":"EODHD (EOD Historical Data)"},"image":{"@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/eodhistoricaldata","https:\/\/x.com\/EOD_data","https:\/\/www.reddit.com\/r\/EODHistoricalData\/","https:\/\/eod-historical-data.medium.com\/"]},{"@type":"Person","@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/b8a8e736d4c1c454d15032c0558d3dd5","name":"Pranjal Saxena","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b41cf6c8f3c0cd0d497cd413e8493735aa0e84cc96c39426ea7b4a3be762d61d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b41cf6c8f3c0cd0d497cd413e8493735aa0e84cc96c39426ea7b4a3be762d61d?s=96&d=mm&r=g","caption":"Pranjal Saxena"},"url":"https:\/\/eodhd.com\/financial-academy\/author\/pranjalsaxena"}]}},"jetpack_featured_media_url":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2023\/11\/pexels-markus-winkler-18512835.jpg","jetpack_shortlink":"https:\/\/wp.me\/pdOdVT-13i","jetpack_sharing_enabled":true,"acf":[],"_links":{"self":[{"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/posts\/4048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/comments?post=4048"}],"version-history":[{"count":49,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/posts\/4048\/revisions"}],"predecessor-version":[{"id":6233,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/posts\/4048\/revisions\/6233"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/media\/4049"}],"wp:attachment":[{"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/media?parent=4048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/categories?post=4048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/tags?post=4048"},{"taxonomy":"coding-language","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/coding-language?post=4048"},{"taxonomy":"ready-to-go-solution","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/ready-to-go-solution?post=4048"},{"taxonomy":"qualification","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/qualification?post=4048"},{"taxonomy":"financial-apis-category","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/financial-apis-category?post=4048"},{"taxonomy":"financial-apis-manuals","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/financial-apis-manuals?post=4048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}