{"id":115387,"date":"2021-12-22T10:52:00","date_gmt":"2021-12-22T15:52:00","guid":{"rendered":"https:\/\/ibkrcampus.com\/?p=115387"},"modified":"2022-11-21T09:50:18","modified_gmt":"2022-11-21T14:50:18","slug":"python-for-trading-an-introduction-part-ii","status":"publish","type":"post","link":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-ii\/","title":{"rendered":"Python For Trading \u2013 An Introduction \u2013 Part II"},"content":{"rendered":"\n<p><em> <em>See <a href=\"\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-i\/\">Part I<\/a> for an overview.<\/em> <\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"popularity-of-python-over-the-years\">Popularity of Python over the years<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"python-on-the-tiobe-index\">Python on the TIOBE Index<\/h3>\n\n\n\n<p>TIOBE ratings are calculated by counting hits of the most popular search engines. Twenty-five search engines are used to calculate the TIOBE index. The TIOBE Programming Community index is an indicator of the popularity of programming languages. The index started in the year 2001 and is updated once a month.<a href=\"https:\/\/statisticstimes.com\/tech\/top-computer-languages.php\" target=\"_blank\" rel=\"noreferrer noopener\"><sup>[1]<\/sup><\/a><\/p>\n\n\n\n<p>According to the&nbsp;<a href=\"https:\/\/www.tiobe.com\/tiobe-index\/\" target=\"_blank\" rel=\"noreferrer noopener\">TIOBE Index<\/a>:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Python has gained 2.2 million developers over the past year<\/p><\/blockquote>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"720\" height=\"320\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-ranking-tiobe-index-19-july-1-quantinsti.png\" alt=\"\" class=\"wp-image-115864 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-ranking-tiobe-index-19-july-1-quantinsti.png 720w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-ranking-tiobe-index-19-july-1-quantinsti-700x311.png 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-ranking-tiobe-index-19-july-1-quantinsti-300x133.png 300w\" data-sizes=\"(max-width: 720px) 100vw, 720px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 720px; aspect-ratio: 720\/320;\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><em>Growth of Python over the years<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"720\" height=\"356\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-ranking-tiobe-index-19-july-all-1-quantinsti.png\" alt=\"\" class=\"wp-image-115866 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-ranking-tiobe-index-19-july-all-1-quantinsti.png 720w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-ranking-tiobe-index-19-july-all-1-quantinsti-700x346.png 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-ranking-tiobe-index-19-july-all-1-quantinsti-300x148.png 300w\" data-sizes=\"(max-width: 720px) 100vw, 720px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 720px; aspect-ratio: 720\/356;\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><em>Python versus all programming languages over the years<\/em><\/p>\n\n\n\n<p>The TIOBE Index also ranks Python in the top spot for the fourth time!<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"491\" height=\"695\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-programming-language-hall-of-fame-tiobe-index-1-quantinsti.png\" alt=\"\" class=\"wp-image-115869 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-programming-language-hall-of-fame-tiobe-index-1-quantinsti.png 491w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-programming-language-hall-of-fame-tiobe-index-1-quantinsti-300x425.png 300w\" data-sizes=\"(max-width: 491px) 100vw, 491px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 491px; aspect-ratio: 491\/695;\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><em>Python is the TOP Programming Language of 2020<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"python-on-the-pypl-index\">Python on the PYPL Index<\/h3>\n\n\n\n<p>The PopularitY of Programming Language aka&nbsp;<a href=\"https:\/\/pypl.github.io\/PYPL.html\" target=\"_blank\" rel=\"noreferrer noopener\">PYPY Index<\/a>&nbsp;is created by analyzing how often language tutorials are searched on Google. The PYPL Index is updated once a month.<a href=\"https:\/\/statisticstimes.com\/tech\/top-computer-languages.php\" target=\"_blank\" rel=\"noreferrer noopener\"><sup>[2]<\/sup><\/a><\/p>\n\n\n\n<p>According to PYPL:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Worldwide, Python is the&nbsp;<strong>most popular<\/strong>&nbsp;language<\/li><li>Python&nbsp;<strong>grew the most in the last 5 years<\/strong>&nbsp;(16.6%)<\/li><li>Python is the&nbsp;<strong>top language in five countries<\/strong>&nbsp;(US, India, Germany, United Kingdom, France)<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"491\" height=\"695\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-programming-language-hall-of-fame-tiobe-index-1-quantinsti-1.png\" alt=\"\" class=\"wp-image-115873 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-programming-language-hall-of-fame-tiobe-index-1-quantinsti-1.png 491w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-programming-language-hall-of-fame-tiobe-index-1-quantinsti-1-300x425.png 300w\" data-sizes=\"(max-width: 491px) 100vw, 491px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 491px; aspect-ratio: 491\/695;\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><em>Python holds the #1 position on the PYPI Index<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Python on Stackoverflow<\/h3>\n\n\n\n<p><a href=\"https:\/\/insights.stackoverflow.com\/survey\/2020#technology-most-loved-dreaded-and-wanted-languages-wanted\" target=\"_blank\" rel=\"noreferrer noopener\">Stackoverflow<\/a>&nbsp;stated that:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u201cIf we look at technologies that developers report that they do not use but want to learn, Python takes the top spot for the fourth year in a row.\u201d<\/p><\/blockquote>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"720\" height=\"411\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-ranking-on-stackoverflow-1-quantinsti.png\" alt=\"\" class=\"wp-image-115877 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-ranking-on-stackoverflow-1-quantinsti.png 720w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-ranking-on-stackoverflow-1-quantinsti-700x400.png 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-ranking-on-stackoverflow-1-quantinsti-300x171.png 300w\" data-sizes=\"(max-width: 720px) 100vw, 720px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 720px; aspect-ratio: 720\/411;\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><em>Learning Python in in greater demand<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"python-on-github\">Python on Github<\/h3>\n\n\n\n<p><a href=\"https:\/\/octoverse.github.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Github<\/a>\u2019s 2020 report states that Python ranks #2 in its list of&nbsp;<strong>The languages that dominated &#8211; Top languages over the years<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"720\" height=\"436\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-tops-programming-languages-github-1-quantinsti.png\" alt=\"\" class=\"wp-image-115880 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-tops-programming-languages-github-1-quantinsti.png 720w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-tops-programming-languages-github-1-quantinsti-700x424.png 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/12\/python-tops-programming-languages-github-1-quantinsti-300x182.png 300w\" data-sizes=\"(max-width: 720px) 100vw, 720px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 720px; aspect-ratio: 720\/436;\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><em>Python has emerged to be almost at the apex of programming languages<\/em><\/p>\n\n\n\n<p><em>Stay tuned for the next installment in which Viraj Bhagat will discuss the benefits and drawbacks of Python in Algorithmic Trading.<\/em><\/p>\n\n\n\n<p><em>Visit QuantInsti to learn more about Python&nbsp;<a href=\"https:\/\/blog.quantinsti.com\/python-trading\/\">https:\/\/blog.quantinsti.com\/python-trading\/<\/a>.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>TIOBE ratings are calculated by counting hits of the most popular search engines. Twenty-five search engines are used to calculate the TIOBE index<\/p>\n","protected":false},"author":727,"featured_media":40540,"comment_status":"closed","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[339,343,349,338],"tags":[7257,865,4659,1225,1224,10805,595,4412,10806,9863,10804,9418],"contributors-categories":[13654],"class_list":{"0":"post-115387","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-data-science","8":"category-programing-languages","9":"category-python-development","10":"category-ibkr-quant-news","11":"tag-algorithmic-trading","12":"tag-github","13":"tag-matplotlib","14":"tag-numpy","15":"tag-pandas","16":"tag-pypl-index","17":"tag-python","18":"tag-scikit-learn","19":"tag-stackoverflow","20":"tag-ta-lib","21":"tag-tiobe-index","22":"tag-zipline","23":"contributors-categories-quantinsti"},"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v27.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Python For Trading \u2013 An Introduction \u2013 Part II<\/title>\n<meta name=\"description\" content=\"TIOBE ratings are calculated by counting hits of the most popular search engines. Twenty-five search engines are used to calculate the TIOBE index\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/115387\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python For Trading \u2013 An Introduction \u2013 Part II | IBKR Quant Blog\" \/>\n<meta property=\"og:description\" content=\"TIOBE ratings are calculated by counting hits of the most popular search engines. Twenty-five search engines are used to calculate the TIOBE index\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-ii\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-22T15:52:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-21T14:50:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/04\/python-programming-keyboard.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"550\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Viraj Bhagat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Viraj Bhagat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\\\/\\\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"NewsArticle\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/python-for-trading-an-introduction-part-ii\\\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/python-for-trading-an-introduction-part-ii\\\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Viraj Bhagat\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/37fd59d28855f9dd642c3a764433764d\"\n\t            },\n\t            \"headline\": \"Python For Trading \u2013 An Introduction \u2013 Part II\",\n\t            \"datePublished\": \"2021-12-22T15:52:00+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:50:18+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/python-for-trading-an-introduction-part-ii\\\/\"\n\t            },\n\t            \"wordCount\": 317,\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/python-for-trading-an-introduction-part-ii\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/04\\\/python-programming-keyboard.jpg\",\n\t            \"keywords\": [\n\t                \"Algorithmic Trading\",\n\t                \"GitHub\",\n\t                \"Matplotlib\",\n\t                \"NumPy\",\n\t                \"Pandas\",\n\t                \"PYPL Index\",\n\t                \"Python\",\n\t                \"Scikit-learn\",\n\t                \"Stackoverflow\",\n\t                \"Ta-Lib\",\n\t                \"TIOBE Index\",\n\t                \"zipline\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"Data Science\",\n\t                \"Programming Languages\",\n\t                \"Python Development\",\n\t                \"Quant\"\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/python-for-trading-an-introduction-part-ii\\\/\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/python-for-trading-an-introduction-part-ii\\\/\",\n\t            \"name\": \"Python For Trading \u2013 An Introduction \u2013 Part II | IBKR Quant Blog\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\"\n\t            },\n\t            \"primaryImageOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/python-for-trading-an-introduction-part-ii\\\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/python-for-trading-an-introduction-part-ii\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/04\\\/python-programming-keyboard.jpg\",\n\t            \"datePublished\": \"2021-12-22T15:52:00+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:50:18+00:00\",\n\t            \"description\": \"TIOBE ratings are calculated by counting hits of the most popular search engines. Twenty-five search engines are used to calculate the TIOBE index\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/python-for-trading-an-introduction-part-ii\\\/\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"ImageObject\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/python-for-trading-an-introduction-part-ii\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/04\\\/python-programming-keyboard.jpg\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/04\\\/python-programming-keyboard.jpg\",\n\t            \"width\": 900,\n\t            \"height\": 550,\n\t            \"caption\": \"Python\"\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"name\": \"IBKR Campus US\",\n\t            \"description\": \"Financial Education from Interactive Brokers\",\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"Organization\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\",\n\t            \"name\": \"Interactive Brokers\",\n\t            \"alternateName\": \"IBKR\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"logo\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\",\n\t                \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"width\": 669,\n\t                \"height\": 669,\n\t                \"caption\": \"Interactive Brokers\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\"\n\t            },\n\t            \"publishingPrinciples\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/about-ibkr-campus\\\/\",\n\t            \"ethicsPolicy\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/cyber-security-notice\\\/\"\n\t        },\n\t        {\n\t            \"@type\": \"Person\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/37fd59d28855f9dd642c3a764433764d\",\n\t            \"name\": \"Viraj Bhagat\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/author\\\/virajbhagat\\\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python For Trading \u2013 An Introduction \u2013 Part II","description":"TIOBE ratings are calculated by counting hits of the most popular search engines. Twenty-five search engines are used to calculate the TIOBE index","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:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/115387\/","og_locale":"en_US","og_type":"article","og_title":"Python For Trading \u2013 An Introduction \u2013 Part II | IBKR Quant Blog","og_description":"TIOBE ratings are calculated by counting hits of the most popular search engines. Twenty-five search engines are used to calculate the TIOBE index","og_url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-ii\/","og_site_name":"IBKR Campus US","article_published_time":"2021-12-22T15:52:00+00:00","article_modified_time":"2022-11-21T14:50:18+00:00","og_image":[{"width":900,"height":550,"url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/04\/python-programming-keyboard.jpg","type":"image\/jpeg"}],"author":"Viraj Bhagat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Viraj Bhagat","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-ii\/#article","isPartOf":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-ii\/"},"author":{"name":"Viraj Bhagat","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/37fd59d28855f9dd642c3a764433764d"},"headline":"Python For Trading \u2013 An Introduction \u2013 Part II","datePublished":"2021-12-22T15:52:00+00:00","dateModified":"2022-11-21T14:50:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-ii\/"},"wordCount":317,"publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-ii\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/04\/python-programming-keyboard.jpg","keywords":["Algorithmic Trading","GitHub","Matplotlib","NumPy","Pandas","PYPL Index","Python","Scikit-learn","Stackoverflow","Ta-Lib","TIOBE Index","zipline"],"articleSection":["Data Science","Programming Languages","Python Development","Quant"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-ii\/","url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-ii\/","name":"Python For Trading \u2013 An Introduction \u2013 Part II | IBKR Quant Blog","isPartOf":{"@id":"https:\/\/ibkrcampus.com\/campus\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-ii\/#primaryimage"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-ii\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/04\/python-programming-keyboard.jpg","datePublished":"2021-12-22T15:52:00+00:00","dateModified":"2022-11-21T14:50:18+00:00","description":"TIOBE ratings are calculated by counting hits of the most popular search engines. Twenty-five search engines are used to calculate the TIOBE index","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-ii\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/python-for-trading-an-introduction-part-ii\/#primaryimage","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/04\/python-programming-keyboard.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/04\/python-programming-keyboard.jpg","width":900,"height":550,"caption":"Python"},{"@type":"WebSite","@id":"https:\/\/ibkrcampus.com\/campus\/#website","url":"https:\/\/ibkrcampus.com\/campus\/","name":"IBKR Campus US","description":"Financial Education from Interactive Brokers","publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ibkrcampus.com\/campus\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ibkrcampus.com\/campus\/#organization","name":"Interactive Brokers","alternateName":"IBKR","url":"https:\/\/ibkrcampus.com\/campus\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","width":669,"height":669,"caption":"Interactive Brokers"},"image":{"@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/"},"publishingPrinciples":"https:\/\/www.interactivebrokers.com\/campus\/about-ibkr-campus\/","ethicsPolicy":"https:\/\/www.interactivebrokers.com\/campus\/cyber-security-notice\/"},{"@type":"Person","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/37fd59d28855f9dd642c3a764433764d","name":"Viraj Bhagat","url":"https:\/\/www.interactivebrokers.com\/campus\/author\/virajbhagat\/"}]}},"jetpack_featured_media_url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/04\/python-programming-keyboard.jpg","_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/115387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/users\/727"}],"replies":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/comments?post=115387"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/115387\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media\/40540"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=115387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/categories?post=115387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/tags?post=115387"},{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=115387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}