{"id":15445,"date":"2021-03-22T00:55:43","date_gmt":"2021-03-21T16:55:43","guid":{"rendered":"https:\/\/www.tejwin.com\/?post_type=insight&#038;p=15445"},"modified":"2026-03-03T13:26:53","modified_gmt":"2026-03-03T05:26:53","slug":"numpy-pandas","status":"publish","type":"insight","link":"https:\/\/www.tejwin.com\/en\/insight\/numpy-pandas\/","title":{"rendered":"Numpy, Pandas"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/\/image-215-1024x1024.png\" alt=\"\" class=\"wp-image-15479\" srcset=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/image-215-1024x1024.png 1024w, https:\/\/www.tejwin.com\/wp-content\/uploads\/image-215-300x300.png 300w, https:\/\/www.tejwin.com\/wp-content\/uploads\/image-215-150x150.png 150w, https:\/\/www.tejwin.com\/wp-content\/uploads\/image-215-768x768.png 768w, https:\/\/www.tejwin.com\/wp-content\/uploads\/image-215.png 1400w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Using NumPy and Pandas to start your first step of data analysis<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p id=\"ea0e\">After reading our previous articles, you might have already known how to get the data from TEJ API, store it into your computer, and update automatically! Then we are going to tell you&nbsp;<strong>how to analyze this data by using these two important packages- Numpy and Pandas<\/strong><\/p>\n<\/blockquote>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_81 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ffa44944076\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ffa44944076\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.tejwin.com\/en\/insight\/numpy-pandas\/#Highlights_of_this_article\" >Highlights of this article<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.tejwin.com\/en\/insight\/numpy-pandas\/#Links_related_to_this_article\" >Links related to this article<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.tejwin.com\/en\/insight\/numpy-pandas\/#What_is_Numpy_How_to_use_it\" >What is Numpy? How to use it?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.tejwin.com\/en\/insight\/numpy-pandas\/#What_is_Pandas_How_to_use_it\" >What is Pandas? How to use it?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.tejwin.com\/en\/insight\/numpy-pandas\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.tejwin.com\/en\/insight\/numpy-pandas\/#Links_related_to_this_article_again\" >Links related to this article again!<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"9310\"><span class=\"ez-toc-section\" id=\"Highlights_of_this_article\"><\/span><strong>Highlights of this article <\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Numpy Intro\/Application<\/li>\n\n\n\n<li>Pandas Intro\/Application<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"4306\"><span class=\"ez-toc-section\" id=\"Links_related_to_this_article\"><\/span><strong>Links related to this article<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>API Official Website:\u00a0<a aria-label=\"TEJ API Official Website (opens in a new tab)\" href=\"https:\/\/www.tejwin.com\/en\/about\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"ek-link\">TEJ API Official Website<\/a><\/li>\n\n\n\n<li>The Product Package:\u00a0<a aria-label=\"TEJ E SHOP (opens in a new tab)\" href=\"https:\/\/eshop.tej.com.tw\/E-Shop\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"ek-link\">TEJ E SHOP<\/a><\/li>\n\n\n\n<li>Source Code:\u00a0<a href=\"https:\/\/github.com\/tejtw\/TEJAPI_Python_Medium_DataAnalysis\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"ek-link\">TEJ GITHUB<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"9a65\"><span class=\"ez-toc-section\" id=\"What_is_Numpy_How_to_use_it\"><\/span>What is Numpy? How to use it?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p id=\"a8b4\">Numpy is designed to conveniently and efficiently process n-dimensional and large-scale data arrays. With built-in functions, users could perform preliminary and rapid data processing.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Basic Application\uff0dSingle Dimension<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>import numpy as np\na = np.array(&#91;0, 0.5, 1.0, 1.5, 2.0]) #float ndarray -1-1.\nb = np.array(&#91;'a', 'b', 'c']) #string ndarray        -1-2.\nc = np.arange(0, 10, 2) #array(&#91;0, 2, 4, 6, 8])      -2.\nc&#91;2:] #array(&#91;4, 6, 8])                              -3.\nc&#91;:2] #array(&#91;0, 2])                                 -4.<\/code><\/pre>\n\n\n\n<p id=\"c029\">Examples above:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a float data type array; string data type array<\/li>\n\n\n\n<li>Through np.arange() function, creating an array starts with 0, ends with 2, and the interval is 2.<\/li>\n\n\n\n<li>In python,&nbsp;<strong>\u201d[]\u201d means select, and \u201d: \u201d means to\u2026.&nbsp;<\/strong>But what we have to notice is that<strong>&nbsp;the location of the first element is 0 instead of 1 in python.&nbsp;<\/strong>Therefore<strong>, c[2:] means selecting the element from location 2 to the end (include the last element).<\/strong><\/li>\n\n\n\n<li>Same as above, but if we change from&nbsp;<strong>c[2:] to c[:2]<\/strong>, which means selecting<strong>&nbsp;<\/strong>elements<strong>&nbsp;from start to location 1( location 2 is not included)!!<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Mathematical Tools<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>a = np.arange(0, 30, 2) #array(&#91;0, 2, 4, ..., 28])\na.sum() #210                                      -1-1.\na.mean() #14.0                                    -1-2.\na.std() #8.640987                                 -1-3.\na.cumsum() #array(&#91;0, 2, 6, 12, ...,210])         -1-4.\nlst = &#91;0, 2, 4]\nlst*2 = &#91;0, 2, 4, 0, 2, 4]                        -2-1.\na+a #array(&#91;0, 4, 8, ..., 56])                    -2-2.\na*a #array(&#91;0, 4, 16, ..., 784])                  -2-3.<\/code><\/pre>\n\n\n\n<p id=\"be3e\">Examples above:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>the sum of array a; average; standard deviation; cumulative sum<\/li>\n\n\n\n<li>elements in array an add with the corresponding position; multiply with the corresponding position<\/li>\n<\/ol>\n\n\n\n<p id=\"325a\">The first example is to use numpy built-in functions to calculate. In the second example, we can see the numpy vectorized computation. If we multiply a list(2\u20131) by 2,&nbsp;<strong>the number of elements in the list will double instead of doubling the value.<\/strong>&nbsp;But if it is numpy array(2\u20132, 2\u20133), it is possible to perform mathematical operations on the<strong>&nbsp;corresponding positions of the elements<\/strong>&nbsp;in the array~\ud83d\udcaa\ud83d\udcaa<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Basic Application\uff0dMultiple Dimensions<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>b = np.array(&#91;a, a*2]) #array(&#91;0, 2, 4, ..., 28],\n                              &#91;0, 4, 8, ..., 56])\nb&#91;0] #array(&#91;0, 2, 4, ..., 28])                   -1-1.\nb&#91;0]&#91;1] #2                                        -1-2.\nb.sum(axis = 1) #array(&#91;210, 420])                -1-3.\nb.shape #(2, 15)                                  -2-1.\nb.reshape(5,6) #array(&#91;0, 2, 4, 6, 8, 10],        -2-2.\n                              ...\n                      &#91;36, 40,   ..., 56]])<\/code><\/pre>\n\n\n\n<p id=\"b192\">Examples above:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Select the first row of array b; select the second element of the first row of the array b; row sum of array b<\/li>\n\n\n\n<li>Shape(2*15) of array b; change to a new shape(2*15 -&gt; 5*6)<\/li>\n<\/ol>\n\n\n\n<p id=\"6598\">Next, let\u2019s take a look at how numpy performs on multi-dimensional arrays. Similarly, we also use \u201c[]\u201d to select. The difference is that there are more elements that can be selected, so we can&nbsp;<strong>use 2 \u201c[][]\u201d to select column and position respectively.<\/strong>&nbsp;If we want to do some matrix operations, we can use&nbsp;<strong>shape functions<\/strong>&nbsp;in numpy to check and find the desired shape to do the calculation.~\ud83d\udcaa\ud83d\udcaa<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Other Applications\uff0dBoolean, Random Variables, Financial Functions<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>#boolean\nb &gt; 15    #array(&#91;False, False, ..., True],        -1-1.\n                 &#91;False, False, ..., True])\nnp.where(b&gt;15, 1, 0) #array(&#91;0, 0, ..., 1],        -1-2.\n                            &#91;0, 0, ..., 1])\n#random variable\nnp.random.normal(5, 2, 10)                         -2-1. \nnp.random.standard_normal(5)                       -2-2.\n#financial\npip install numpy_financial\nimport numpy_financial as npf\nnpf.fv(0.03, 5, 0, -1000) #1159.27                 -3-1.\n#fv(rate, nper, pmt, pv)                 \nnpf.irr(&#91;-95, 3, 3, 3, 103]) #0.0439               -3-2.\n#irr(values)<\/code><\/pre>\n\n\n\n<p id=\"3976\">Examples above:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Boolean:<br><\/strong>We can&nbsp;<strong>directly use inequality<\/strong>(bigger than 15 in the example) to find the corresponding T\/F array&nbsp;<strong>in numpy array<\/strong>&nbsp;or use np.where() function to make a new way of judging T\/F (T is 1, F is 0 in the example).<\/li>\n\n\n\n<li><strong>Random Variables:<br><\/strong>Using different distributions in statistics to generate random variables, such as the&nbsp;<strong>normal distribution<\/strong>&nbsp;in the example(mean 5, std 2, 10 elements), and&nbsp;<strong>standard normal distribution<\/strong>, and so on.<\/li>\n\n\n\n<li><strong>Financial Functions:<br><\/strong>In numpy, there is also a package designed for financial functions such as fv, pv, and irr which will be used when discounting. But we will need to install this package separately. All functions included in this package can be checked in&nbsp;<a href=\"https:\/\/numpy.org\/doc\/1.17\/reference\/routines.financial.html\" rel=\"noreferrer noopener\" target=\"_blank\"><strong>HERE<\/strong><\/a>~.<\/li>\n<\/ol>\n\n\n\n<p id=\"253b\">Numpy has many applications for data processing, so it is very difficult for us to tell you all of them in just one article\ud83d\ude22. Therefore, if you are interested in numpy, you can go through<strong>&nbsp;<\/strong><a href=\"https:\/\/numpy.org\/doc\/stable\/\" rel=\"noreferrer noopener\" target=\"_blank\"><strong>Numpy Official Website<\/strong><\/a>&nbsp;or leave the message below!\ud83d\udcaa\ud83d\udcaa<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"8d7e\"><span class=\"ez-toc-section\" id=\"What_is_Pandas_How_to_use_it\"><\/span>What is Pandas? How to use it?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p id=\"d7a1\">Pandas is a package that specializes in analyzing table data. Just like Excel, it presents data in a format we called DataFrame in order to help users analyze data more conveniently, especially for financial time series data.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Basic Application<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>import pandas as pd\ndf = pd.DataFrame(&#91;1, 2, 3, 4],\n                  columns = &#91;'Numbers'],\n                  index = &#91;'index_a','index_b','index_c','index_d'])<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"101\" height=\"164\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/image-212.png\" alt=\"\" class=\"wp-image-15450\" srcset=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/image-212.png 101w, https:\/\/www.tejwin.com\/wp-content\/uploads\/image-212-92x150.png 92w\" sizes=\"(max-width: 101px) 100vw, 101px\" \/><\/figure>\n\n\n\n<p id=\"36b6\">From the codes above, we can<strong>&nbsp;create a table with column name \u201cNumbers\u201d and row names \u201dindex_a, b, c, and d\u201d respectively.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>df.loc&#91;'index_a'] #Numbers 1                                  -1-1.\ndf.iloc&#91;0:2] #refer to source code                            -1-2.\ndf * 2 #same as numpy                                         -1-3.\n#add \"Name\" column\ndf&#91;'Name'] = &#91;'Amy', 'Bob', 'Catherine', 'Duke']              -2-1.\n#select whole column\ndf&#91;'Numbers']                                                 -2-2.\n#delete column\ndf.drop('column name', axis=1)                                -2-3.\n#Math\ndf&#91;'Numbers'].sum() #10                                       -3-1.\ndf&#91;'Numbers'].mean() #2.5                                     -3-2.\ndf&#91;'Numbers'].std() #1.291                                    -3-3.\n<\/code><\/pre>\n\n\n\n<p id=\"dd7b\">Examples above:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Use loc and iloc to find the corresponding value. It should be noted that&nbsp;<strong>loc is the name of the column\/row,&nbsp;<\/strong>so we have to enter the name when selecting, while&nbsp;<strong>iloc is the position corresponding to the element. For example(1\u20132), select the elements from the start to position 1 (2 is not included!).<\/strong><\/li>\n\n\n\n<li>Add; select; delete the column<\/li>\n\n\n\n<li>Sum of the whole df; average; standard deviation<\/li>\n<\/ol>\n\n\n\n<p id=\"c73e\">Like the numpy arrays which we have mentioned earlier, in Pandas, we also use brackets&nbsp;<strong>[\u201ccolumn name\u201d] to select or add columns.&nbsp;<\/strong>But we will have to use the drop() function to delete columns. For operations, pandas dataFrame can perform basic statistical calculations in tables.<strong>~<\/strong>\ud83d\udcaa\ud83d\udcaa<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Basic Data Analysis<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>import tejapi\ntejapi.ApiConfig.api_key = \u201c\u4f60\u7684api_key\u201d\ndf = tejapi.get('TWN\/EWPRCD', \ncoid = &#91;'2330'],\nmdate={'gte':'2020-01-01', 'lte':'2020-12-31'}, \nopts={'columns': &#91;'mdate','open_d','high_d','low_d','close_d']}, \npaginate=True\n)\n#Math\ndf.describe()\nnp.mean(df)\nnp.log(df)\n#Plot\ndf&#91;'close_d'].plot()<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"314\" height=\"265\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/image-213.png\" alt=\"\" class=\"wp-image-15452\" srcset=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/image-213.png 314w, https:\/\/www.tejwin.com\/wp-content\/uploads\/image-213-300x253.png 300w, https:\/\/www.tejwin.com\/wp-content\/uploads\/image-213-150x127.png 150w\" sizes=\"(max-width: 314px) 100vw, 314px\" \/><figcaption class=\"wp-element-caption\">Descriptive Statistics Table<\/figcaption><\/figure>\n\n\n\n<p>The sample data we used for pandas data analysis is&nbsp;<strong>2330.TW stock price daily data got from the TEJ API.&nbsp;<\/strong>Then, most of the statistics that may be used further can be obtained through&nbsp;<strong>describe() function<\/strong>(figure above\ud83d\udc46). If we want to do some operations on these values, we could&nbsp;<strong>directly use numpy<\/strong>&nbsp;to perform operations on the entire table!<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"346\" height=\"328\" src=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/image-214.png\" alt=\"\" class=\"wp-image-15454\" srcset=\"https:\/\/www.tejwin.com\/wp-content\/uploads\/image-214.png 346w, https:\/\/www.tejwin.com\/wp-content\/uploads\/image-214-300x284.png 300w, https:\/\/www.tejwin.com\/wp-content\/uploads\/image-214-150x142.png 150w\" sizes=\"(max-width: 346px) 100vw, 346px\" \/><figcaption class=\"wp-element-caption\">Stock Price\uff08Daily\uff09<\/figcaption><\/figure>\n\n\n\n<p id=\"c1da\">Last is the data visualization. There are several ways for users to plot the graph in python, and Pandas provides a very very easy one! If the chart we want to present&nbsp;<strong>is not complicated&nbsp;<\/strong>such as simple stock daily price, daily return, etc. We can<strong>&nbsp;select the column and use the plot() function to directly see the result!&nbsp;<\/strong>(figure above\ud83d\udc46)<\/p>\n\n\n\n<p id=\"2f40\">The only thing we have to note here is that the&nbsp;<strong>X and Y axes in the chart are the index and data you select respectively<\/strong>. That\u2019s why&nbsp;<strong>we use a set_index() function to process our raw data at first.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"5e52\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p id=\"920a\">What we share with you this time is how to use Numpy and Pandas packages to do the data analysis. However, it is very difficult for us to explain all the functions included in these 2 packages. Therefore, if you have any question or interested in any topic, you could go to their websites or leave the message below \u2757\ufe0f\u2757\ufe0f Then, we will&nbsp;<strong>go further into financial data analysis and applications in the next article<\/strong>, please look forward to it \u2757\ufe0f\u2757\ufe0f<\/p>\n\n\n\n<p id=\"dae6\">Finally, if you like this topic, please click \ud83d\udc4f below, giving us more support and encouragement. Additionally, if you have any questions or suggestions, please leave a message or email us, we will try our best to reply to you.\ud83d\udc4d\ud83d\udc4d<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"3bb0\"><span class=\"ez-toc-section\" id=\"Links_related_to_this_article_again\"><\/span>Links related to this article again!<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>1\ufe0f\u20e3 API Official Website:&nbsp;<a aria-label=\"TEJ API Official Website (opens in a new tab)\" href=\"https:\/\/www.tejwin.com\/en\/about\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"ek-link\">TEJ API Official Website<\/a><\/li>\n\n\n\n<li>2\ufe0f\u20e3 The Product Package:&nbsp;<a href=\"https:\/\/eshop.tej.com.tw\/E-Shop\/\" target=\"_blank\" aria-label=\"TEJ E SHOP (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"ek-link\">TEJ E SHOP<\/a><\/li>\n\n\n\n<li>3\ufe0f\u20e3 Source Code:&nbsp;<a href=\"https:\/\/github.com\/tejtw\/TEJAPI_Python_Medium_DataAnalysis\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"ek-link\">TEJ GITHUB<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Using NumPy and Pandas to start your first step of data analysis After reading our previous articles, you might have already known how to get the data from TEJ API, store it into your computer, and update automatically! Then we are going to tell you&nbsp;how to analyze this data by using these two important packages- [&hellip;]<\/p>\n","protected":false},"featured_media":15479,"template":"","tags":[3586,3587,3176,3160,3007],"insight-category":[690,50,3509],"class_list":["post-15445","insight","type-insight","status-publish","has-post-thumbnail","hentry","tag-numpy","tag-pandas","tag-python-2","tag-tej-api-2","tag-tejapi-data-analysis","insight-category-data-analysis","insight-category-fintech","insight-category-fintech-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight\/15445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight"}],"about":[{"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/types\/insight"}],"version-history":[{"count":1,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight\/15445\/revisions"}],"predecessor-version":[{"id":44102,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight\/15445\/revisions\/44102"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/media\/15479"}],"wp:attachment":[{"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/media?parent=15445"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/tags?post=15445"},{"taxonomy":"insight-category","embeddable":true,"href":"https:\/\/www.tejwin.com\/en\/wp-json\/wp\/v2\/insight-category?post=15445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}