{"id":5797,"date":"2020-12-03T18:58:28","date_gmt":"2020-12-03T13:28:28","guid":{"rendered":"http:\/\/www.pythonpool.com\/?p=5797"},"modified":"2023-12-30T16:20:42","modified_gmt":"2023-12-30T10:50:42","slug":"numpy-hstack","status":"publish","type":"post","link":"https:\/\/www.pythonpool.com\/numpy-hstack\/","title":{"rendered":"Numpy Hstack in Python For Different Arrays"},"content":{"rendered":"\n<p>The numpy module in Python consists of so many interesting functions. One such fascinating and time-saving method is the numpy hstack() function. Many times, we want to <a href=\"http:\/\/www.pythonpool.com\/python-stack\/\" target=\"_blank\" rel=\"noreferrer noopener\">stack<\/a> different arrays into one array without losing the value. And that too in one line of code. So, to solve this problem, there are two functions available in numpy vstack() and hstack(). Here, &#8216;v&#8217; means &#8216;Vertical,&#8217; and &#8216;h&#8217; means &#8216;Horizontal.&#8217;<\/p>\n\n\n\n<p>In this particular article, we will discuss in-depth the <strong>Numpy hstack()<\/strong> function. The numpy.hstack() function in Python is used to stack or pile the sequence of input arrays horizontally (column-wise) and make them a single array. You can use hstack() very effectively up to three-dimensional arrays. Enough talk now; let&#8217;s move directly to the usage and examples from the basics.<\/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\/numpy-hstack\/#Syntax\" >Syntax<\/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\/numpy-hstack\/#Parameters\" >Parameters<\/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\/numpy-hstack\/#Return_Value\" >Return Value<\/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\/numpy-hstack\/#Examples_to_Simplify_Numpy_Hstack\" >Examples to Simplify Numpy Hstack<\/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.pythonpool.com\/numpy-hstack\/#Example_1_Basic_Case_to_Learn_the_Working_of_Numpy_Hstack\" >Example 1: Basic Case to Learn the Working of Numpy Hstack<\/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.pythonpool.com\/numpy-hstack\/#Example_2_Combining_Three_1-D_Arrays_Horizontally_Using_numpyhstack_function\" >Example 2: Combining Three 1-D Arrays Horizontally Using numpy.hstack function<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.pythonpool.com\/numpy-hstack\/#Example_3_Combining_2-D_Numpy_Arrays_With_Numpyhstack\" >Example 3: Combining 2-D Numpy Arrays With Numpy.hstack<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.pythonpool.com\/numpy-hstack\/#Example_4_Stacking_3-D_Numpy_Array_using_hstack_Function\" >Example 4: Stacking 3-D Numpy Array using hstack Function<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.pythonpool.com\/numpy-hstack\/#Can_We_Combine_Numpy_Arrays_with_Different_Shapes_Using_Hstack\" >Can We Combine Numpy Arrays with Different Shapes Using Hstack<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.pythonpool.com\/numpy-hstack\/#Difference_Between_NpHstack_and_NpConcatenate\" >Difference Between Np.Hstack() and Np.Concatenate()<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.pythonpool.com\/numpy-hstack\/#Difference_Between_numpy_hstack_and_vstack\" >Difference Between numpy hstack() and vstack()<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.pythonpool.com\/numpy-hstack\/#Do_the_Number_of_Columns_and_Rows_Needs_to_Be_Same\" >Do the Number of Columns and Rows Needs to Be Same?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.pythonpool.com\/numpy-hstack\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.pythonpool.com\/numpy-hstack\/#Trending_Python_Articles\" >Trending Python Articles<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-syntax\"><span class=\"ez-toc-section\" id=\"Syntax\"><\/span>Syntax<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>numpy.hstack(tup)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-parameters\"><span class=\"ez-toc-section\" id=\"Parameters\"><\/span>Parameters<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th><strong>Name<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td>tup<\/td><td>The sequence of nd-array. The collection of input arrays is the only thing you need to provide as an input&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-note\">Note<\/h3>\n\n\n\n<p>We need only one argument for this function: &#8216;tup.&#8217; Tup is known as a tuple containing arrays to be stacked. This parameter is a required parameter, and we have to mandatory pass a value.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-return-value\"><span class=\"ez-toc-section\" id=\"Return_Value\"><\/span>Return Value<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Stacked Array: The array (nd-array) formed by stacking the passed arrays.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-examples-to-simplify-numpy-hstack\"><span class=\"ez-toc-section\" id=\"Examples_to_Simplify_Numpy_Hstack\"><\/span>Examples to Simplify Numpy Hstack<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Now, we have seen the syntax, required parameters, and return value of the function <strong>numpy stack<\/strong>. Let&#8217;s move to the examples section. Here we will start from the very basic case and after that, we will increase the level of examples gradually.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-example-1-basic-case-to-learn-the-working-of-numpy-hstack\"><span class=\"ez-toc-section\" id=\"Example_1_Basic_Case_to_Learn_the_Working_of_Numpy_Hstack\"><\/span>Example 1: Basic Case to Learn the Working of Numpy Hstack<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this example 1, we will simply initialize, declare two numpy arrays and then make their horizontal stack using hstack function.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport numpy as np\nx = np.array(&#x5B;0, 1, 2])\nprint (&quot;First Input array : \\n&quot;, x)  \ny = np.array(&#x5B;3, 4, 5])\nprint (&quot;Second Input array : \\n&quot;, y)  \nres = np.hstack((x,y))\nprint (&quot;Horizontally stacked array:\\n &quot;, res) \n<\/pre><\/div>\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>First Input array :\n &#91;0 1 2]\nSecond Input array :\n &#91;3 4 5]\nHorizontally stacked array:\n &#91;0 1 2 3 4 5]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-explanation\">Explanation:<\/h3>\n\n\n\n<p>In the above example, we stacked two numpy arrays horizontally (column-wise). Firstly we imported the numpy module. Following the import,<em> <\/em>we initialized, declared, and stored two numpy arrays in variable &#8216;x and y&#8217;.  After that, with the np.hstack() function, we piled or stacked the two 1-D numpy arrays. <em>Here please note that the stack will be done Horizontally (column-wise stack). Also, both the arrays must have the same shape along all but the first axis.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-example-2-combining-three-1-d-arrays-horizontally-using-numpy-hstack-function\"><span class=\"ez-toc-section\" id=\"Example_2_Combining_Three_1-D_Arrays_Horizontally_Using_numpyhstack_function\"><\/span>Example 2: Combining Three 1-D Arrays Horizontally Using numpy.hstack function<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Let&#8217;s move to the second example here we will take three 1-D arrays and combine them into one single <a href=\"https:\/\/en.wikipedia.org\/wiki\/Array_data_structure\" target=\"_blank\" rel=\"noreferrer noopener\">array<\/a>.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport numpy as np\nx = np.array(&#x5B;0, 1])\nprint (&quot;First Input array : \\n&quot;, x)  \ny = np.array(&#x5B;2, 3])\nprint (&quot;Second Input array : \\n&quot;, y)  \nz = np.array(&#x5B;4, 5])\nprint (&quot;Third Input array : \\n&quot;, z)  \nres = np.hstack((x, y, z))\nprint (&quot;Horizontally stacked array:\\n &quot;, res)\n<\/pre><\/div>\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>First Input array :\n &#91;0 1]\nSecond Input array :\n &#91;2 3]\nThird Input array :\n &#91;4 5]\nHorizontally stacked array:\n  &#91;0 1 2 3 4 5]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-explanation-1\">Explanation<\/h3>\n\n\n\n<p>In the above example, we have done all the things similar to example 1 except adding one extra array. In example 1 we can see there are two arrays. But in this example, we have used three arrays &#8216;x, y, z&#8217;. And with the help of np.hstack() we joined them together column-wise (horizontally).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-example-3-combining-2-d-numpy-arrays-with-numpy-hstack\"><span class=\"ez-toc-section\" id=\"Example_3_Combining_2-D_Numpy_Arrays_With_Numpyhstack\"><\/span>Example 3: Combining 2-D Numpy Arrays With Numpy.hstack<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport numpy as np\nx = np.array(&#x5B;&#x5B;0, 1], &#x5B;2, 3]])\nprint (&quot;First Input array : \\n&quot;, x)  \ny = np.array(&#x5B;&#x5B;4, 5], &#x5B;6, 7]])\nprint (&quot;Second Input array : \\n&quot;, y) \nres = np.hstack((x, y))\nprint (&quot;Horizontally stacked array:\\n &quot;, res)\n<\/pre><\/div>\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>First Input array :\n &#91;&#91;0 1]\n &#91;2 3]]\nSecond Input array :\n &#91;&#91;4 5]\n &#91;6 7]]\nHorizontally stacked array:\n &#91;&#91;0 1 4 5]\n &#91;2 3 6 7]]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-explanation-2\">Explanation:<\/h3>\n\n\n\n<p>In the above example, we have initialized and declared two 2-D arrays. And we have stored them in two variables, &#8216;x,y&#8217; respectively. After storing the variables in two different arrays, we used the function to join the two 2-D arrays and make them one single 2-d array. Here we need to make sure that the shape of both the input arrays should be the same. If the shapes are different, then we will get a value error. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-example-4-stacking-3-d-numpy-array-using-hstack-function\"><span class=\"ez-toc-section\" id=\"Example_4_Stacking_3-D_Numpy_Array_using_hstack_Function\"><\/span>Example 4: Stacking 3-D Numpy Array using hstack Function<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport numpy as np\nx = np.array(&#x5B;&#x5B;&#x5B;1, 2], &#x5B;3, 4]], &#x5B;&#x5B;5, 6], &#x5B;7, 8]]])\nprint (&quot;First Input array : \\n&quot;, x)  \ny = np.array(&#x5B;&#x5B;&#x5B;9, 10], &#x5B;11, 12]], &#x5B;&#x5B;13, 14], &#x5B;15, 16]]])\nprint (&quot;Second Input array : \\n&quot;, y) \nres = np.hstack((x, y))\nprint (&quot;Horizontally stacked array:\\n &quot;, res)\n<\/pre><\/div>\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>First Input array : \n &#91;&#91;&#91;1 2]\n  &#91;3 4]]\n\n &#91;&#91;5 6]\n  &#91;7 8]]]\nSecond Input array : \n &#91;&#91;&#91; 9 10]\n  &#91;11 12]]\n\n &#91;&#91;13 14]\n  &#91;15 16]]]\nHorizontally stacked array:\n  &#91;&#91;&#91; 1  2]\n  &#91; 3  4]\n  &#91; 9 10]\n  &#91;11 12]]\n\n &#91;&#91; 5  6]\n  &#91; 7  8]\n  &#91;13 14]\n  &#91;15 16]]]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-explanation-3\">Explanation<\/h3>\n\n\n\n<p>We can use this function for stacking or combining a 3-D array horizontally (column-wise). Instead of a 1-D array or a 2-D array in the above example, we have declared and initialized two 3-D arrays. After initializing, we have stored them in two variables, <strong>&#8216;x and y&#8217;<\/strong> respectively. Following the storing part, we have used the function to stack the 3-D array in a horizontal manner (column-wise).<\/p>\n\n\n\n<p><strong>Note: <\/strong>The shape of the input arrays should be same.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-can-we-combine-numpy-arrays-with-different-shapes-using-hstack\"><span class=\"ez-toc-section\" id=\"Can_We_Combine_Numpy_Arrays_with_Different_Shapes_Using_Hstack\"><\/span>Can We Combine Numpy Arrays with Different Shapes Using Hstack<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>The simple one-word answer is No.<\/strong> Let&#8217;s prove it through one of the examples.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport numpy as np\nx = np.array(&#x5B;0, 1])\nprint (&quot;First Input array : \\n&quot;, x)  \ny = np.array(&#x5B;3, 4, 5])\nprint (&quot;Second Input array : \\n&quot;, y)  \nres = np.hstack((x,y))\nprint (&quot;Horizontally stacked array:\\n &quot;, res) \n<\/pre><\/div>\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ValueError: all the input array dimensions except for the concatenation axis must match exactly<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-explanation-4\">Explanation:<\/h3>\n\n\n\n<p>In the above case we get a value error. Here firstly we have imported the required module. After that, we have initialized two arrays and stored them in two different variables. Here the point to be noted is that in the variable &#8216;x&#8217; the array has two elements. But in the variable &#8216;y&#8217; the array has three elements. So, we can see the shape of both the arrays is not the same. Which is the basic requirement, while working with this function. That&#8217;s why we get a value error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-difference-between-np-hstack-and-np-concatenate\"><span class=\"ez-toc-section\" id=\"Difference_Between_NpHstack_and_NpConcatenate\"><\/span>Difference Between Np.Hstack() and Np.Concatenate()<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>NumPy concatenate is similar to a more flexible model of np.hstack. NumPy concatenate also unites together NumPy arrays, but it might combine arrays collectively either vertically or even horizontally. So NumPy concatenate gets the capacity to unite arrays together like np.hstack plus np.vstack. How np.concatenate acts depends on how you utilize the axis parameter from the syntax.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-difference-between-numpy-hstack-and-vstack\"><span class=\"ez-toc-section\" id=\"Difference_Between_numpy_hstack_and_vstack\"><\/span>Difference Between numpy hstack() and vstack()<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>NumPy hstack and NumPy vstack are alike because they both unite NumPy arrays together. <strong>The significant distinction is that np.hstack unites NumPy arrays horizontally and <a href=\"http:\/\/www.pythonpool.com\/numpy-vstack\/\" target=\"_blank\" rel=\"noreferrer noopener\">np.vstack<\/a> unites arrays vertically.<\/strong><\/p>\n\n\n\n<p>Aside from that, however, the syntax and behavior is quite similar.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-do-the-number-of-columns-and-rows-needs-to-be-same\"><span class=\"ez-toc-section\" id=\"Do_the_Number_of_Columns_and_Rows_Needs_to_Be_Same\"><\/span>Do the Number of Columns and Rows Needs to Be Same?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>Column:<\/strong> No, if you use NumPy hstack, the input arrays may have a different number of columns.<br><strong>Rows:<\/strong> If you use NumPy hstack, the input arrays have to possess exactly the identical amount of rows.<\/p>\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 learned, different facets like syntax, functioning, and cases of this hstack in detail. Numpy.hstack() is a function that helps to pile the input sequence horizontally so as to produce one stacked array. It can be useful when we want to stack different arrays into one column-wise (horizontally). We can use this function up to nd-arrays but it&#8217;s recommended to use it till <br>3-D arrays.<\/p>\n\n\n\n<p>However, if you have any doubts or questions, do let me know in the comment section below. I will try to help you as soon as possible.<\/p>\n\n\n\n<p><strong><em>Happy Pythoning!<\/em><\/strong><\/p>\n\n\n<div class=\"monsterinsights-widget-popular-posts monsterinsights-widget-popular-posts-delta monsterinsights-popular-posts-styled monsterinsights-widget-popular-posts-columns-2\"><h2 class=\"monsterinsights-widget-popular-posts-widget-title\"><span class=\"ez-toc-section\" id=\"Trending_Python_Articles\"><\/span>Trending Python Articles<span class=\"ez-toc-section-end\"><\/span><\/h2><ul class=\"monsterinsights-widget-popular-posts-list\"><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-cant-compare-datetime-datetime-to-datetime-date\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/typeerror-cant-compare-datetime.datetime-to-datetime.date_.webp 1200w \" alt=\"[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] typeerror can&#8217;t compare datetime.datetime to datetime.date<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 11, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-nameerror-name-unicode-is-not-defined\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-nameerror-name-Unicode-is-not-defined.webp 1200w \" alt=\"[Fixed] nameerror: name Unicode is not defined\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] nameerror: name Unicode is not defined<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/solved-runtimeerror-cuda-error-invalid-device-ordinal\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Solved-runtimeerror-cuda-error-invalid-device-ordinal.webp 1200w \" alt=\"[Solved] runtimeerror: cuda error: invalid device ordinal\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Solved] runtimeerror: cuda error: invalid device ordinal<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><li ><a href=\"https:\/\/www.pythonpool.com\/fixed-typeerror-type-numpy-ndarray-doesnt-define-__round__-method\/\"><div class=\"monsterinsights-widget-popular-posts-image\"><img decoding=\"async\" src=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-300x157.webp\" srcset=\" https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-300x157.webp 300w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-1024x536.webp 1024w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method-768x402.webp 768w, https:\/\/www.pythonpool.com\/wp-content\/uploads\/2024\/01\/Fixed-typeerror-type-numpy.ndarray-doesnt-define-__round__-method.webp 1200w \" alt=\"[Fixed] typeerror: type numpy.ndarray doesn&#8217;t define __round__ method\" \/><\/div><div class=\"monsterinsights-widget-popular-posts-text\"><span class=\"monsterinsights-widget-popular-posts-title\" >[Fixed] typeerror: type numpy.ndarray doesn&#8217;t define __round__ method<\/span><div class=\"monsterinsights-widget-popular-posts-meta\" ><span class=\"monsterinsights-widget-popular-posts-author\">by Namrata Gulati<\/span><span>&#9679;<\/span><span class=\"monsterinsights-widget-popular-posts-date\">January 2, 2024<\/span><\/div><\/div><\/a><\/li><\/ul><\/div><p><\/p>","protected":false},"excerpt":{"rendered":"<p>The numpy module in Python consists of so many interesting functions. One such fascinating and time-saving method is the numpy hstack() function. Many times, we &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Numpy Hstack in Python For Different Arrays\" class=\"read-more button\" href=\"https:\/\/www.pythonpool.com\/numpy-hstack\/#more-5797\" aria-label=\"More on Numpy Hstack in Python For Different Arrays\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":5805,"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":[2607,2608,2609,2610],"class_list":["post-5797","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-numpy","tag-hstack-numpy","tag-hstack-numpy-shape","tag-numpy-hstack","tag-python-numpy-hstack","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>Numpy Hstack in Python For Different Arrays - Python Pool<\/title>\n<meta name=\"description\" content=\"numpy hstack() function in Python is used to stack the sequence of input arrays horizontally (column-wise) and make them a single array.\" \/>\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\/numpy-hstack\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Numpy Hstack in Python For Different Arrays\" \/>\n<meta property=\"og:description\" content=\"The numpy module in Python consists of so many interesting functions. One such fascinating and time-saving method is the numpy hstack() function. Many\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pythonpool.com\/numpy-hstack\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Pool\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-03T13:28:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-30T10:50:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/12\/Theatre-Actor-Portfolio-Website-3.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=\"Python Pool\" \/>\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=\"Python Pool\" \/>\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\/numpy-hstack\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/numpy-hstack\/\"},\"author\":{\"name\":\"Python Pool\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/f87448ee54c0ffd2889fbf2408c18998\"},\"headline\":\"Numpy Hstack in Python For Different Arrays\",\"datePublished\":\"2020-12-03T13:28:28+00:00\",\"dateModified\":\"2023-12-30T10:50:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/numpy-hstack\/\"},\"wordCount\":1004,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.pythonpool.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/numpy-hstack\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/12\/Theatre-Actor-Portfolio-Website-3.png\",\"keywords\":[\"hstack numpy\",\"hstack numpy shape\",\"numpy hstack\",\"python numpy hstack\"],\"articleSection\":[\"Numpy\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.pythonpool.com\/numpy-hstack\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.pythonpool.com\/numpy-hstack\/\",\"url\":\"https:\/\/www.pythonpool.com\/numpy-hstack\/\",\"name\":\"Numpy Hstack in Python For Different Arrays - Python Pool\",\"isPartOf\":{\"@id\":\"https:\/\/www.pythonpool.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.pythonpool.com\/numpy-hstack\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.pythonpool.com\/numpy-hstack\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/12\/Theatre-Actor-Portfolio-Website-3.png\",\"datePublished\":\"2020-12-03T13:28:28+00:00\",\"dateModified\":\"2023-12-30T10:50:42+00:00\",\"description\":\"numpy hstack() function in Python is used to stack the sequence of input arrays horizontally (column-wise) and make them a single array.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pythonpool.com\/numpy-hstack\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pythonpool.com\/numpy-hstack\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/numpy-hstack\/#primaryimage\",\"url\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/12\/Theatre-Actor-Portfolio-Website-3.png\",\"contentUrl\":\"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/12\/Theatre-Actor-Portfolio-Website-3.png\",\"width\":1350,\"height\":650,\"caption\":\"Numpy Hstack\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pythonpool.com\/numpy-hstack\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pythonpool.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Numpy Hstack in Python For Different Arrays\"}]},{\"@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\/f87448ee54c0ffd2889fbf2408c18998\",\"name\":\"Python Pool\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fdd3cb9ad7f560324dfd481989550aa8ffce84388fd253c42beca35c999d3108?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fdd3cb9ad7f560324dfd481989550aa8ffce84388fd253c42beca35c999d3108?s=96&d=wavatar&r=g\",\"caption\":\"Python Pool\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Numpy Hstack in Python For Different Arrays - Python Pool","description":"numpy hstack() function in Python is used to stack the sequence of input arrays horizontally (column-wise) and make them a single array.","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\/numpy-hstack\/","og_locale":"en_US","og_type":"article","og_title":"Numpy Hstack in Python For Different Arrays","og_description":"The numpy module in Python consists of so many interesting functions. One such fascinating and time-saving method is the numpy hstack() function. Many","og_url":"https:\/\/www.pythonpool.com\/numpy-hstack\/","og_site_name":"Python Pool","article_published_time":"2020-12-03T13:28:28+00:00","article_modified_time":"2023-12-30T10:50:42+00:00","og_image":[{"width":1350,"height":650,"url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/12\/Theatre-Actor-Portfolio-Website-3.png","type":"image\/png"}],"author":"Python Pool","twitter_card":"summary_large_image","twitter_creator":"@pythonpool","twitter_site":"@pythonpool","twitter_misc":{"Written by":"Python Pool","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pythonpool.com\/numpy-hstack\/#article","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/numpy-hstack\/"},"author":{"name":"Python Pool","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/f87448ee54c0ffd2889fbf2408c18998"},"headline":"Numpy Hstack in Python For Different Arrays","datePublished":"2020-12-03T13:28:28+00:00","dateModified":"2023-12-30T10:50:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pythonpool.com\/numpy-hstack\/"},"wordCount":1004,"commentCount":0,"publisher":{"@id":"https:\/\/www.pythonpool.com\/#organization"},"image":{"@id":"https:\/\/www.pythonpool.com\/numpy-hstack\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/12\/Theatre-Actor-Portfolio-Website-3.png","keywords":["hstack numpy","hstack numpy shape","numpy hstack","python numpy hstack"],"articleSection":["Numpy"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pythonpool.com\/numpy-hstack\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pythonpool.com\/numpy-hstack\/","url":"https:\/\/www.pythonpool.com\/numpy-hstack\/","name":"Numpy Hstack in Python For Different Arrays - Python Pool","isPartOf":{"@id":"https:\/\/www.pythonpool.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pythonpool.com\/numpy-hstack\/#primaryimage"},"image":{"@id":"https:\/\/www.pythonpool.com\/numpy-hstack\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/12\/Theatre-Actor-Portfolio-Website-3.png","datePublished":"2020-12-03T13:28:28+00:00","dateModified":"2023-12-30T10:50:42+00:00","description":"numpy hstack() function in Python is used to stack the sequence of input arrays horizontally (column-wise) and make them a single array.","breadcrumb":{"@id":"https:\/\/www.pythonpool.com\/numpy-hstack\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pythonpool.com\/numpy-hstack\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/numpy-hstack\/#primaryimage","url":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/12\/Theatre-Actor-Portfolio-Website-3.png","contentUrl":"https:\/\/www.pythonpool.com\/wp-content\/uploads\/2020\/12\/Theatre-Actor-Portfolio-Website-3.png","width":1350,"height":650,"caption":"Numpy Hstack"},{"@type":"BreadcrumbList","@id":"https:\/\/www.pythonpool.com\/numpy-hstack\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pythonpool.com\/"},{"@type":"ListItem","position":2,"name":"Numpy Hstack in Python For Different Arrays"}]},{"@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\/f87448ee54c0ffd2889fbf2408c18998","name":"Python Pool","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pythonpool.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fdd3cb9ad7f560324dfd481989550aa8ffce84388fd253c42beca35c999d3108?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fdd3cb9ad7f560324dfd481989550aa8ffce84388fd253c42beca35c999d3108?s=96&d=wavatar&r=g","caption":"Python Pool"}}]}},"_links":{"self":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/5797","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/comments?post=5797"}],"version-history":[{"count":6,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/5797\/revisions"}],"predecessor-version":[{"id":31329,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/posts\/5797\/revisions\/31329"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media\/5805"}],"wp:attachment":[{"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/media?parent=5797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/categories?post=5797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pythonpool.com\/wp-json\/wp\/v2\/tags?post=5797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}