{"id":476,"date":"2022-08-16T08:29:51","date_gmt":"2022-08-16T08:29:51","guid":{"rendered":"https:\/\/eodhd.com\/financial-academy\/?p=476"},"modified":"2025-02-05T11:38:18","modified_gmt":"2025-02-05T11:38:18","slug":"processing-stocks-data-in-python-for-the-analysis","status":"publish","type":"post","link":"https:\/\/eodhd.com\/financial-academy\/stocks-data-processing-examples\/processing-stocks-data-in-python-for-the-analysis","title":{"rendered":"Processing Stocks Data in Python for the Analysis"},"content":{"rendered":"\n<p><strong>Preface: <\/strong>In this video series Matt shows how to use the EODHD Financial APIs for the Stock Analysis with Python.<\/p>\n\n\n\n<p><strong>Don&#8217;t forget to explore other 2 Parts to learn more:<\/strong><br>Part 1 <a href=\"https:\/\/eodhistoricaldata.com\/financial-academy\/get-financial-data-samples\/obtaining-stocks-data-for-the-analysis-in-python\/\">Obtaining Stocks Data for the Analysis in Python<\/a><br>Part 2 Processing Stocks Data in Python for the Analysis<br>Part 3 <a href=\"https:\/\/eodhistoricaldata.com\/financial-academy\/extracting-the-knowledge-from-the-data\/filtering-and-visualizing-the-stocks-data-analysis-results-in-python\/\">Filtering and visualizing the Stocks Data Analysis results in Python<\/a><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"entry-content-asset\"><iframe loading=\"lazy\" title=\"Python Aggregate Stock Data: Combine Multiple Price CSV Files into One Pandas DataFrame | Part 4 \ud83d\udee0\ufe0f\" width=\"980\" height=\"551\" src=\"https:\/\/www.youtube.com\/embed\/dPloA2TAo_c?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<p><\/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            <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\"><code lang=\"python\" class=\"language-python\">import datetime as dt\nfrom eod import EodHistoricalData\nimport json\nimport os\nimport pandas as pd\nimport requests\n\nDEFAULT_DATE = dt.date.today() - dt.timedelta(396)\nTODAY =dt.date.today()              \n\ndef get_closing_prices(folder= 'data_files', adj_close= False):\n    \"\"\"\n    returns file with closing prices for selected securities\n    \"\"\"\n    files = [file for file in os.listdir(folder) if not file.startswith('0')]\n\n    closes = pd.DataFrame()\n\n    for file in files:\n        if adj_close:\n            df = pd.DataFrame(pd.read_csv(f\"{folder}\/{file}\",\n                            index_col = 'date')['adjusted_close'])\n            df.rename(columns={'adjusted_close': file[:-4]}, inplace=True)\n        else:\n            df = pd.DataFrame(pd.read_csv(f\"{folder}\/{file}\",\n                            index_col = 'date')['close'])\n            df.rename(columns={'close': file[:-4]}, inplace=True)\n\n        if closes.empty:\n            closes = df\n        else:\n            closes = pd.concat([closes, df], axis = 1)\n    closes.to_csv(f\"{folder}\/0-closes.csv\")\n    return closes                                                                        \n\ndef main():\n    key = open('api_token.txt').read()\n    get_closing_prices(folder='energy')\n\nif __name__ == '__main__':\n    main()<\/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<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"entry-content-asset\"><iframe loading=\"lazy\" title=\"Python Financial Analysis: Returns, Correlation Matrix, &amp; Performance Plots | Part 5 \ud83d\udcc8\" width=\"980\" height=\"551\" src=\"https:\/\/www.youtube.com\/embed\/OYS75jihV5Y?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/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\"><code lang=\"python\" class=\"language-python\">import datetime as dt\nfrom eod import EodHistoricalData\nimport json\nimport matplotlib.pyplot as plt\nimport numpy as np\nimport os\nimport pandas as pd\nimport requests\n\nDEFAULT_DATE = dt.date.today() - dt.timedelta(396)\nTODAY =dt.date.today()\n\ndef returns_from_closes(folder, filename):\n    \"\"\"\n    returns instantaneous returns for selected securities\n    \"\"\"\n    try:\n        data = pd.read_csv(f\"{folder}\/{filename}\", index_col=['date'])\n        \n    except Exception as e:\n        print(f\"There was a problem: {e}\")            \n    return np.log(data).diff().dropna()\n\ndef get_corr(data):\n    \"\"\"\n    returns correl from securities\n    \"\"\"\n    return data.corr()\n\ndef plot_closes(closes, relative=False):\n    \"\"\"\n    plot absolute or relative closes for securities\n    \"\"\"\n    if closes.endswith('.csv'):\n        closes = pd.read_csv(closes, index_col=['date'])\n    else:\n        closes = pd.read_excel(closes, index_col=['date'])\n    if relative:\n        relative_change = closes \/ closes.iloc[0] - 1\n        relative_change.plot()\n        plt.axhline(0, c='r', ls='--')\n        plt.grid(axis='y')\n        plt.show()\n    else:\n        closes.plot()\n        plt.grid(axis='y')\n        plt.show()            \n\ndef main():\n    key = open('api_token.txt').read()\n    print(returns_from_closes('energy', '0-closes.csv'))\n    print(get_corr(returns_from_closes('energy','0-closes.csv')))\n    plot_closes(closes='mine\/0-closes.csv',relative=True)\n\nif __name__ == '__main__':\n    main()<\/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-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"entry-content-asset\"><iframe loading=\"lazy\" title=\"Python: Calculate Stock Returns &amp; Save to Multi-Sheet Excel File (Pandas) | Part 6 \ud83d\udcca\" width=\"980\" height=\"551\" src=\"https:\/\/www.youtube.com\/embed\/Ox7qVlfNYNE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/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\"><code lang=\"python\" class=\"language-python\">def get_return_data(*tickers, date=DEFAULT_DATE, adj_close=False, key):\n    \"\"\"\n    saves closes and returns out to excel file named returns\n    \"\"\"\n    client = EodHistoricalData(key)\n    temp = pd.DataFrame()\n\n    for ticker in tickers:\n        try:\n            if adj_close:\n                temp[ticker] = pd.DataFrame(client.get_prices_eod(ticker,\n                from_=date))['adjusted_close']\n            else:\n                temp[ticker] = pd.DataFrame(client.get_prices_eod(ticker,\n                from_=date))['close']\n        except Exception as e:\n            print(f\"{ticker} had a problem: {e}\")\n    data = temp\n    data_instanteous = np.log(data).diff().dropna()\n    data_pct = data.pct_change()\n\n    with pd.ExcelWriter('returns.xlsx', datetime_format='yyyy-mm-dd') as writer:\n        data.to_excel(writer, sheet_name='closes')\n        data_instanteous.to_excel(writer, sheet_name='returns')\n        data_pct.to_excel(writer, sheet_name='pct change')\n\n    print(f\"Data retrieved and saved to returns.xlsx in {os.getcwd()}\")\n    return data, data_instanteous, data_pct\n    \ndef main():\n    key = open('api_token.txt').read()\n    tickers = \"AAPL AMZN GOOG NVDA\".split()\n    returns = get_return_data(*tickers, key=key)\n    print(returns[0])\n    \nif __name__ == '__main__':\n    main()<\/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><\/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","protected":false},"excerpt":{"rendered":"<p>Preface: In this video series Matt shows how to use the EODHD Financial APIs for the Stock Analysis with Python. Don&#8217;t forget to explore other 2 Parts to learn more:Part 1 Obtaining Stocks Data for the Analysis in PythonPart 2 Processing Stocks Data in Python for the AnalysisPart 3 Filtering and visualizing the Stocks Data [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"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":[48],"tags":[51],"coding-language":[30],"ready-to-go-solution":[],"qualification":[31,33],"financial-apis-category":[36],"financial-apis-manuals":[47],"class_list":["post-476","post","type-post","status-publish","format-standard","hentry","category-stocks-data-processing-examples","tag-youtube","coding-language-python","qualification-experienced","qualification-newbie","financial-apis-category-stock-market-prices","financial-apis-manuals-exchanges-data"],"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>Stocks Data Python Analysis: Exploring EODHD Financial APIs | EODHD APIs Academy<\/title>\n<meta name=\"description\" content=\"Harness the power of Python for stocks data analysis. Watch this video series to learn how to use EODHD Financial APIs to obtain, process, filter, and visualize data for insightful analysis\" \/>\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-processing-examples\/processing-stocks-data-in-python-for-the-analysis\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Processing Stocks Data in Python for the Analysis\" \/>\n<meta property=\"og:description\" content=\"Harness the power of Python for stocks data analysis. Watch this video series to learn how to use EODHD Financial APIs to obtain, process, filter, and visualize data for insightful analysis\" \/>\n<meta property=\"og:url\" content=\"https:\/\/eodhd.com\/financial-academy\/stocks-data-processing-examples\/processing-stocks-data-in-python-for-the-analysis\" \/>\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=\"2022-08-16T08:29:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-05T11:38:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2022\/08\/Processing-Stocks-Data-in-Python-for-the-Analysis.png\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"450\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Matt Macarty\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/mjmacarty\" \/>\n<meta name=\"twitter:site\" content=\"@EOD_data\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Matt Macarty\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\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-processing-examples\/processing-stocks-data-in-python-for-the-analysis#article\",\"isPartOf\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-data-processing-examples\/processing-stocks-data-in-python-for-the-analysis\"},\"author\":{\"name\":\"Matt Macarty\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/60415de1596098ca8152e233c446a992\"},\"headline\":\"Processing Stocks Data in Python for the Analysis\",\"datePublished\":\"2022-08-16T08:29:51+00:00\",\"dateModified\":\"2025-02-05T11:38:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-data-processing-examples\/processing-stocks-data-in-python-for-the-analysis\"},\"wordCount\":89,\"publisher\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#organization\"},\"keywords\":[\"YouTube Videos\"],\"articleSection\":[\"Stocks Data Processing Examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-data-processing-examples\/processing-stocks-data-in-python-for-the-analysis\",\"url\":\"https:\/\/eodhd.com\/financial-academy\/stocks-data-processing-examples\/processing-stocks-data-in-python-for-the-analysis\",\"name\":\"Stocks Data Python Analysis: Exploring EODHD Financial APIs | EODHD APIs Academy\",\"isPartOf\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#website\"},\"datePublished\":\"2022-08-16T08:29:51+00:00\",\"dateModified\":\"2025-02-05T11:38:18+00:00\",\"description\":\"Harness the power of Python for stocks data analysis. Watch this video series to learn how to use EODHD Financial APIs to obtain, process, filter, and visualize data for insightful analysis\",\"breadcrumb\":{\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-data-processing-examples\/processing-stocks-data-in-python-for-the-analysis#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/eodhd.com\/financial-academy\/stocks-data-processing-examples\/processing-stocks-data-in-python-for-the-analysis\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/stocks-data-processing-examples\/processing-stocks-data-in-python-for-the-analysis#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/eodhd.com\/financial-academy\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Processing Stocks Data in Python for the Analysis\"}]},{\"@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\/60415de1596098ca8152e233c446a992\",\"name\":\"Matt Macarty\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a323524269378edb9025ce263fb588b98fd68a6188e577b95d0bdfe6dd8ccc43?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a323524269378edb9025ce263fb588b98fd68a6188e577b95d0bdfe6dd8ccc43?s=96&d=mm&r=g\",\"caption\":\"Matt Macarty\"},\"sameAs\":[\"https:\/\/linkedin.com\/in\/mjmacarty\",\"https:\/\/x.com\/https:\/\/twitter.com\/mjmacarty\"],\"url\":\"https:\/\/eodhd.com\/financial-academy\/author\/mattmacarty\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Stocks Data Python Analysis: Exploring EODHD Financial APIs | EODHD APIs Academy","description":"Harness the power of Python for stocks data analysis. Watch this video series to learn how to use EODHD Financial APIs to obtain, process, filter, and visualize data for insightful analysis","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-processing-examples\/processing-stocks-data-in-python-for-the-analysis","og_locale":"en_US","og_type":"article","og_title":"Processing Stocks Data in Python for the Analysis","og_description":"Harness the power of Python for stocks data analysis. Watch this video series to learn how to use EODHD Financial APIs to obtain, process, filter, and visualize data for insightful analysis","og_url":"https:\/\/eodhd.com\/financial-academy\/stocks-data-processing-examples\/processing-stocks-data-in-python-for-the-analysis","og_site_name":"Financial Academy","article_publisher":"https:\/\/www.facebook.com\/eodhistoricaldata","article_published_time":"2022-08-16T08:29:51+00:00","article_modified_time":"2025-02-05T11:38:18+00:00","og_image":[{"width":800,"height":450,"url":"https:\/\/eodhd.com\/financial-academy\/wp-content\/uploads\/2022\/08\/Processing-Stocks-Data-in-Python-for-the-Analysis.png","type":"image\/png"}],"author":"Matt Macarty","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/mjmacarty","twitter_site":"@EOD_data","twitter_misc":{"Written by":"Matt Macarty","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/eodhd.com\/financial-academy\/stocks-data-processing-examples\/processing-stocks-data-in-python-for-the-analysis#article","isPartOf":{"@id":"https:\/\/eodhd.com\/financial-academy\/stocks-data-processing-examples\/processing-stocks-data-in-python-for-the-analysis"},"author":{"name":"Matt Macarty","@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/60415de1596098ca8152e233c446a992"},"headline":"Processing Stocks Data in Python for the Analysis","datePublished":"2022-08-16T08:29:51+00:00","dateModified":"2025-02-05T11:38:18+00:00","mainEntityOfPage":{"@id":"https:\/\/eodhd.com\/financial-academy\/stocks-data-processing-examples\/processing-stocks-data-in-python-for-the-analysis"},"wordCount":89,"publisher":{"@id":"https:\/\/eodhd.com\/financial-academy\/#organization"},"keywords":["YouTube Videos"],"articleSection":["Stocks Data Processing Examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/eodhd.com\/financial-academy\/stocks-data-processing-examples\/processing-stocks-data-in-python-for-the-analysis","url":"https:\/\/eodhd.com\/financial-academy\/stocks-data-processing-examples\/processing-stocks-data-in-python-for-the-analysis","name":"Stocks Data Python Analysis: Exploring EODHD Financial APIs | EODHD APIs Academy","isPartOf":{"@id":"https:\/\/eodhd.com\/financial-academy\/#website"},"datePublished":"2022-08-16T08:29:51+00:00","dateModified":"2025-02-05T11:38:18+00:00","description":"Harness the power of Python for stocks data analysis. Watch this video series to learn how to use EODHD Financial APIs to obtain, process, filter, and visualize data for insightful analysis","breadcrumb":{"@id":"https:\/\/eodhd.com\/financial-academy\/stocks-data-processing-examples\/processing-stocks-data-in-python-for-the-analysis#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/eodhd.com\/financial-academy\/stocks-data-processing-examples\/processing-stocks-data-in-python-for-the-analysis"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/eodhd.com\/financial-academy\/stocks-data-processing-examples\/processing-stocks-data-in-python-for-the-analysis#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/eodhd.com\/financial-academy\/"},{"@type":"ListItem","position":2,"name":"Processing Stocks Data in Python for the Analysis"}]},{"@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\/60415de1596098ca8152e233c446a992","name":"Matt Macarty","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-academy\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a323524269378edb9025ce263fb588b98fd68a6188e577b95d0bdfe6dd8ccc43?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a323524269378edb9025ce263fb588b98fd68a6188e577b95d0bdfe6dd8ccc43?s=96&d=mm&r=g","caption":"Matt Macarty"},"sameAs":["https:\/\/linkedin.com\/in\/mjmacarty","https:\/\/x.com\/https:\/\/twitter.com\/mjmacarty"],"url":"https:\/\/eodhd.com\/financial-academy\/author\/mattmacarty"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pdOdVT-7G","jetpack_sharing_enabled":true,"acf":[],"_links":{"self":[{"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/posts\/476","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/comments?post=476"}],"version-history":[{"count":6,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/posts\/476\/revisions"}],"predecessor-version":[{"id":6228,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/posts\/476\/revisions\/6228"}],"wp:attachment":[{"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/media?parent=476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/categories?post=476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/tags?post=476"},{"taxonomy":"coding-language","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/coding-language?post=476"},{"taxonomy":"ready-to-go-solution","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/ready-to-go-solution?post=476"},{"taxonomy":"qualification","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/qualification?post=476"},{"taxonomy":"financial-apis-category","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/financial-apis-category?post=476"},{"taxonomy":"financial-apis-manuals","embeddable":true,"href":"https:\/\/eodhd.com\/financial-academy\/wp-json\/wp\/v2\/financial-apis-manuals?post=476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}