{"id":8100,"date":"2021-01-23T17:43:38","date_gmt":"2021-01-23T12:13:38","guid":{"rendered":"http:\/\/www.pythonpool.com\/?p=8100"},"modified":"2021-06-14T15:00:16","modified_gmt":"2021-06-14T09:30:16","slug":"normalize-numpy-array","status":"publish","type":"post","link":"https:\/\/www.pythonpool.com\/normalize-numpy-array\/","title":{"rendered":"Best Ways to Normalize Numpy Array"},"content":{"rendered":"\n<p>Hello geeks and welcome in this article, we will cover <strong>Normalize NumPy array<\/strong>. You can divide this article into 2 sections. In the 1st section, we will cover the <strong>NumPy array<\/strong>. Whereas in the second one, we will cover how to <strong>normalize<\/strong> it. To achieve a complete understanding of this topic, we cover its&nbsp;<strong>syntax and parameter<\/strong>. Then we will see the application of all the theory part through a couple of examples. But before moving that far ahead, let us get a brief understanding of the 2 things.<\/p>\n\n\n\n<p><strong>Numpy is a powerful mathematical library of python<\/strong>. Here the function Numpy array helps us <strong>create an array<\/strong> of different dimensions and sizes. Now coming to <strong>normalization, we can define it as a procedure of adjusting values measured on a different scale to a common scale.<\/strong> Now moving ahead, let us cover them in detail.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_74 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #990303;color:#990303\" 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: #990303;color:#990303\" 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><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.pythonpool.com\/normalize-numpy-array\/#NumPy_array\" >NumPy array<\/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.pythonpool.com\/normalize-numpy-array\/#Normalize_Numpy_Array\" >Normalize Numpy Array<\/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.pythonpool.com\/normalize-numpy-array\/#Different_methods_of_normalization_of_NumPy_array\" >Different methods of normalization of NumPy array<\/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.pythonpool.com\/normalize-numpy-array\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-numpy-array\"><span class=\"ez-toc-section\" id=\"NumPy_array\"><\/span>NumPy array <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>As discussed earlier, a Numpy array helps us in creating arrays. In this section, we will look at the syntax and different parameters associated with it. Along with that, we will also look at some examples.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-syntax-of-numpy-array\">Syntax of NumPy array<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>numpy.array<\/code><strong>(<\/strong><em>object<\/em>)<\/pre>\n\n\n\n<p>This is the general syntax for the function. It has several parameters associated with which we will be covering in the next section.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-parameters\">Parameters <\/h3>\n\n\n\n<p><strong>1. object:array_like<\/strong><\/p>\n\n\n\n<p>This parameter represents the input array that we want as output.<\/p>\n\n\n\n<p><strong>2. dtype:data-type<\/strong><\/p>\n\n\n\n<p>This parameter represents the data type which the array elements will have. It is an optional parameter. By default it is not specified it will take the minimum type required to hold the elements.<\/p>\n\n\n\n<p><strong>3. order:<\/strong><\/p>\n\n\n\n<p>This is another optional parameter and specifies the memory layout of an array. The newly created array will be in c-order (row-major) if the object is not an array type. Also if F is specified that is (column-major) then it will take its shape.<\/p>\n\n\n\n<p><strong>4. ndmin:int<\/strong><\/p>\n\n\n\n<p>This optional parameter specifies the maximum number of dimension resulting array will have.<\/p>\n\n\n\n<p style=\"font-size:24px\"><strong>Returns<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>out:ndarray<\/code><\/pre>\n\n\n\n<p>On completion of program it returns an array of specified condition. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-examples\">Examples<\/h3>\n\n\n\n<p>As of now, we are done covering all the theories associated with the NumPy array. Let us now see some examples and understand how it is executed. After this, we will quickly jump to <strong>Normalize Numpy Array<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport numpy as ppool\na=ppool.array(&#x5B;&#x5B;1,2,3,],\n                &#x5B;4,5,6]],dtype=&quot;float&quot;)\nprint(a)\n<\/pre><\/div>\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;&#91;1. 2. 3.]\n &#91;4. 5. 6.]]<\/code><\/pre>\n\n\n\n<p>Above we can see a simple example of<strong> <\/strong>NumPy array. Here we have first imported the NumPy library. After which we have used the proper syntax and also specified the dtype to be a float. In the end, our result justifies our input and hence it is verified. Similarly, you can also do it for the complex data type. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-normalize-numpy-array\"><span class=\"ez-toc-section\" id=\"Normalize_Numpy_Array\"><\/span>Normalize Numpy Array<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>As if now we have covered Numpy Array. Now we can generate arrays as per our liking and need. In this section, we will focus on normalizing those arrays. As mentioned earlier that normalization is a procedure of adjusting values measured on a different scale to a common scale. To normalize an array 1st, we need to find the normal value of the array. After which we need to divide the array by its normal value to get the Normalized array.<\/p>\n\n\n\n<p>In order to calculate the normal value of the array we use this particular syntax.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">numpy.linalg.norm()<\/pre>\n\n\n\n<p>  Now as we are done with all the theory section. Let us see it&#8217;s application through an example.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport numpy as ppool\na=ppool.array(&#x5B;&#x5B;1,2,3,],\n                &#x5B;4,5,6]],dtype=&quot;float&quot;)\nprint(a)\nb=ppool.linalg.norm(a)\nprint(b)\nnorm=a\/b\nprint(norm)\n<\/pre><\/div>\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;&#91;1. 2. 3.]\n &#91;4. 5. 6.]]\n9.539392014169456\n&#91;&#91;0.10482848 0.20965697 0.31448545]\n &#91;0.41931393 0.52414242 0.6289709 ]]<\/code><\/pre>\n\n\n\n<p>In the above example, we have used the same array as generated above. Now first we have calculated the normal value of the array. After calculating the normal value we have divided each term of the array by the normal value. Hence we obtain a normalized NumPy array.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-different-methods-of-normalization-of-numpy-array\"><span class=\"ez-toc-section\" id=\"Different_methods_of_normalization_of_NumPy_array\"><\/span>Different methods of normalization of NumPy array<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-1-normalizing-using-numpy-sum\">1. Normalizing using NumPy Sum<\/h3>\n\n\n\n<p>In this method, we use the NumPy ndarray sum to calculate the sum of each individual row of the array. After which we divide the elements if array by <a href=\"http:\/\/www.pythonpool.com\/python-sum\/\" target=\"_blank\" rel=\"noreferrer noopener\">sum<\/a>. Let us see this through an example.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport numpy as ppool\na=ppool.array(&#x5B;&#x5B;1,2],\n                &#x5B;4,5]],dtype=&quot;float&quot;)\nprint(a)\nb=ppool.ndarray.sum(a,axis=1)\nprint(b)\nc=a\/b\nprint(c)\n<\/pre><\/div>\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;&#91;1. 2.]\n &#91;4. 5.]]\n&#91;3. 9.]\n&#91;&#91;0.33333333 0.22222222]\n &#91;1.33333333 0.55555556]]<\/code><\/pre>\n\n\n\n<p> This is another you can use for normalizing the array. This method is really effective for row-wise normalization.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-2-normalization-using-sklearn\">2. Normalization using sklearn <\/h3>\n\n\n\n<p>Sklearn is a module of python used highly for <a href=\"http:\/\/www.pythonpool.com\/data-science-internship\/\" >data science<\/a> and mining. Using this <a href=\"https:\/\/en.wikipedia.org\/wiki\/Method\" target=\"_blank\" rel=\"noreferrer noopener\">method<\/a> also we can normalize the array. It follows a really simple procedure and let us understand it using an example.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfrom sklearn import preprocessing\nprint(preprocessing.normalize(&#x5B;&#x5B;5.0, 48.0], &#x5B;14.0, 32.0]]))\n<\/pre><\/div>\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;&#91;0.10360608 0.99461841]\n &#91;0.40081883 0.91615733]]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-3-normalization-using-list-comprehension\">3. Normalization using list comprehension<\/h3>\n\n\n\n<p>You can also normalize a list in python. List comprehension, in general, offers a shorter syntax,  which helps in creating the new list from the existing list. Let us look at it through an example.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nlist = &#x5B;&#x5B;7.0, 5.0, 9.0, 7.0]]\nnorm_list = &#x5B;i \/ sum(j) for j in list for i in j]\nprint(norm_list)\n<\/pre><\/div>\n\n\n<p>Look how we were able to normalize our existing list. Here we can see that we have divided each element in the list by the sum of all elements. This also a good option for normalizing. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-4-normalization-using-for-loop\">4. Normalization using For loop<\/h3>\n\n\n\n<p>We also carry forward the normalization process using for loop. Using for loop, we can calculate the sum of all elements. Then divide each element by that sum. Here I advise you to use the NumPy array. While carrying on the division, you may get the error as &#8220;list\/int&#8221; not a suitable data-type.   <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport numpy as ppool\ndef _sum(arr):  \n      \n    sum=0\n      \n    for i in arr: \n        sum = sum + i \n          \n    return(sum)  \n  \narr = ppool.array(&#x5B;11, 32, 45, 18] ) \nn = len(arr)  \nans = _sum(arr)  \nprint (ans) \nb= arr\/ans\nprint(b)\n<\/pre><\/div>\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>106\n&#91;0.10377358 0.30188679 0.4245283  0.16981132]<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this article, we have covered the Normalize NumPy array. To so at first, we covered NumPy array along with its syntax, parameters and example. Then in the next section, we covered how to normalize the array.<\/p>\n\n\n\n<p>I &nbsp;hope this article was able to clear all doubts. But in case you have any unsolved queries feel free to write them below in the comment section. Done reading this why not read about <a href=\"http:\/\/www.pythonpool.com\/python-syslog\/\">Syslog <\/a>next.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello geeks and welcome in this article, we will cover Normalize NumPy array. You can divide this article into 2 sections. In the 1st section, &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Best Ways to Normalize Numpy Array\" class=\"read-more button\" href=\"https:\/\/www.pythonpool.com\/normalize-numpy-array\/#more-8100\" aria-label=\"More on Best Ways to Normalize Numpy Array\">Read more<\/a><\/p>\n","protected":false},"author":11,"featured_media":8153,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1495],"tags":[3375,3376,3380,3381,3379,3382,3378],"class_list":["post-8100","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-numpy","tag-normalize-1d-numpy-array-feature","tag-normalize-a-numpy-array","tag-normalize-array-numpy","tag-normalize-ndarray-using-numpy-array","tag-numpy-array-normalize","tag-numpy-array-normalize-implement","tag-numpy-normalize-array","infinite-scroll-item"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.1 (Yoast SEO v25.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Best Ways to Normalize Numpy Array - Python Pool<\/title>\n<meta name=\"description\" content=\"Hello geeks and welcome in this article we will cover Normalize NumPy array. You can divide this article into 2 sections were in the\" \/>\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.pythonpool.com\/normalize-numpy-array\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Best Ways to Normalize Numpy Array\" \/>\n<meta property=\"og:description\" content=\"Hello geeks and welcome in this article, we will cover Normalize NumPy array. You can divide this article into 2 sections. In the 1st section, we will\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pythonpool.com\/normalize-numpy-array\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Pool\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-23T12:13:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-14T09:30:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-34.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1350\" \/>\n\t<meta property=\"og:image:height\" content=\"650\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Rohit Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pythonpool\" \/>\n<meta name=\"twitter:site\" content=\"@pythonpool\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rohit Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.pythonpool.com\/normalize-numpy-array\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/normalize-numpy-array\/\"},\"author\":{\"name\":\"Rohit Kumar\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/664ced779ebbb8ddfd3c58a60d6f9d66\"},\"headline\":\"Best Ways to Normalize Numpy Array\",\"datePublished\":\"2021-01-23T12:13:38+00:00\",\"dateModified\":\"2021-06-14T09:30:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/normalize-numpy-array\/\"},\"wordCount\":918,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/normalize-numpy-array\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-34.png\",\"keywords\":[\"normalize 1d numpy array feature\",\"normalize a numpy array\",\"normalize array numpy\",\"normalize ndarray using numpy array\",\"numpy array normalize\",\"numpy array normalize implement\",\"numpy normalize array\"],\"articleSection\":[\"Numpy\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.pythonpool.com\/normalize-numpy-array\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.pythonpool.com\/normalize-numpy-array\/\",\"url\":\"https:\/\/www.pythonpool.com\/normalize-numpy-array\/\",\"name\":\"Best Ways to Normalize Numpy Array - Python Pool\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/normalize-numpy-array\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/normalize-numpy-array\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-34.png\",\"datePublished\":\"2021-01-23T12:13:38+00:00\",\"dateModified\":\"2021-06-14T09:30:16+00:00\",\"description\":\"Hello geeks and welcome in this article we will cover Normalize NumPy array. You can divide this article into 2 sections were in the\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pythonpool.com\/normalize-numpy-array\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pythonpool.com\/normalize-numpy-array\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/normalize-numpy-array\/#primaryimage\",\"url\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-34.png\",\"contentUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-34.png\",\"width\":1350,\"height\":650,\"caption\":\"Normalize Numpy Array\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pythonpool.com\/normalize-numpy-array\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pythonpool.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Best Ways to Normalize Numpy Array\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.pythonpool.com\/#website\",\"url\":\"https:\/\/www.pythonpool.com\/\",\"name\":\"Python Pool\",\"description\":\"Your One-Stop Python Learning Destination\",\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.pythonpool.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.pythonpool.com\/#organization\",\"name\":\"Python Pool\",\"url\":\"https:\/\/www.pythonpool.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png\",\"contentUrl\":\"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png\",\"width\":452,\"height\":185,\"caption\":\"Python Pool\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/pythonpool\",\"https:\/\/www.youtube.com\/c\/pythonpool\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/664ced779ebbb8ddfd3c58a60d6f9d66\",\"name\":\"Rohit Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c9a762a12f6bf9093f4c8a7643c0b6a17dd903d9602fae379649d1b050386b1a?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c9a762a12f6bf9093f4c8a7643c0b6a17dd903d9602fae379649d1b050386b1a?s=96&d=wavatar&r=g\",\"caption\":\"Rohit Kumar\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Best Ways to Normalize Numpy Array - Python Pool","description":"Hello geeks and welcome in this article we will cover Normalize NumPy array. You can divide this article into 2 sections were in the","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.pythonpool.com\/normalize-numpy-array\/","og_locale":"en_US","og_type":"article","og_title":"Best Ways to Normalize Numpy Array","og_description":"Hello geeks and welcome in this article, we will cover Normalize NumPy array. You can divide this article into 2 sections. In the 1st section, we will","og_url":"https:\/\/www.pythonpool.com\/normalize-numpy-array\/","og_site_name":"Python Pool","article_published_time":"2021-01-23T12:13:38+00:00","article_modified_time":"2021-06-14T09:30:16+00:00","og_image":[{"width":1350,"height":650,"url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-34.png","type":"image\/png"}],"author":"Rohit Kumar","twitter_card":"summary_large_image","twitter_creator":"@pythonpool","twitter_site":"@pythonpool","twitter_misc":{"Written by":"Rohit Kumar","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pythonpool.com\/normalize-numpy-array\/#article","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/normalize-numpy-array\/"},"author":{"name":"Rohit Kumar","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/664ced779ebbb8ddfd3c58a60d6f9d66"},"headline":"Best Ways to Normalize Numpy Array","datePublished":"2021-01-23T12:13:38+00:00","dateModified":"2021-06-14T09:30:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pythonpool.com\/normalize-numpy-array\/"},"wordCount":918,"commentCount":0,"publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"image":{"@id":"https:\/\/www.pythonpool.com\/normalize-numpy-array\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-34.png","keywords":["normalize 1d numpy array feature","normalize a numpy array","normalize array numpy","normalize ndarray using numpy array","numpy array normalize","numpy array normalize implement","numpy normalize array"],"articleSection":["Numpy"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pythonpool.com\/normalize-numpy-array\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pythonpool.com\/normalize-numpy-array\/","url":"https:\/\/www.pythonpool.com\/normalize-numpy-array\/","name":"Best Ways to Normalize Numpy Array - Python Pool","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pythonpool.com\/normalize-numpy-array\/#primaryimage"},"image":{"@id":"https:\/\/www.pythonpool.com\/normalize-numpy-array\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-34.png","datePublished":"2021-01-23T12:13:38+00:00","dateModified":"2021-06-14T09:30:16+00:00","description":"Hello geeks and welcome in this article we will cover Normalize NumPy array. You can divide this article into 2 sections were in the","breadcrumb":{"@id":"https:\/\/www.pythonpool.com\/normalize-numpy-array\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pythonpool.com\/normalize-numpy-array\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/normalize-numpy-array\/#primaryimage","url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-34.png","contentUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2021\/01\/Theatre-Actor-Portfolio-Website-34.png","width":1350,"height":650,"caption":"Normalize Numpy Array"},{"@type":"BreadcrumbList","@id":"https:\/\/www.pythonpool.com\/normalize-numpy-array\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pythonpool.com\/"},{"@type":"ListItem","position":2,"name":"Best Ways to Normalize Numpy Array"}]},{"@type":"WebSite","@id":"https:\/\/www.pythonpool.com\/#website","url":"https:\/\/www.pythonpool.com\/","name":"Python Pool","description":"Your One-Stop Python Learning Destination","publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pythonpool.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.pythonpool.com\/#organization","name":"Python Pool","url":"https:\/\/www.pythonpool.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png","contentUrl":"http:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/08\/aa.png","width":452,"height":185,"caption":"Python Pool"},"image":{"@id":"https:\/\/www.pythonpool.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/pythonpool","https:\/\/www.youtube.com\/c\/pythonpool"]},{"@type":"Person","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/664ced779ebbb8ddfd3c58a60d6f9d66","name":"Rohit Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c9a762a12f6bf9093f4c8a7643c0b6a17dd903d9602fae379649d1b050386b1a?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c9a762a12f6bf9093f4c8a7643c0b6a17dd903d9602fae379649d1b050386b1a?s=96&d=wavatar&r=g","caption":"Rohit Kumar"}}]}},"_links":{"self":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/8100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/comments?post=8100"}],"version-history":[{"count":12,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/8100\/revisions"}],"predecessor-version":[{"id":13468,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/8100\/revisions\/13468"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media\/8153"}],"wp:attachment":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media?parent=8100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/categories?post=8100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/tags?post=8100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}