{"id":89229,"date":"2024-05-13T19:00:18","date_gmt":"2024-05-13T13:30:18","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=89229"},"modified":"2024-05-17T16:38:04","modified_gmt":"2024-05-17T11:08:04","slug":"numpy-join-and-split-array","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/numpy-join-and-split-array\/","title":{"rendered":"NumPy Join and Split Array"},"content":{"rendered":"<p>NumPy&#8217;s split() and join() functions are essential tools for working with arrays of data. split() allows you to divide an array into multiple subarrays, while join() allows you to combine multiple subarrays into a single array.<\/p>\n<p><strong>These functions are useful for a variety of tasks, such as:<\/strong><\/p>\n<ul>\n<li>Splitting a dataset into training, testing, and validation sets<\/li>\n<li>Splitting a dataset into different categories<\/li>\n<li>Combining multiple datasets into a single dataset<\/li>\n<\/ul>\n<p>In this tutorial, let\u2019s explore the split() and join() functions in more detail and elaborate on how to use them effectively.<\/p>\n<h2>Joining Arrays with numpy.concatenate<\/h2>\n<p>Joining, in NumPy, refers to combining the contents of two or more arrays into a single array. The primary function used for joining arrays is numpy.concatenate(). It concatenates arrays along a specified axis, and if the axis is not provided, it defaults to axis 0.<\/p>\n<p>numpy.concatenate((a1, a2, &#8230;), axis=0, out=None, dtype=None, casting=&#8221;same_kind&#8221;)<\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<td><strong>Example<\/strong><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">a1, a2, \u2026<\/span><\/td>\n<td><span style=\"font-weight: 400\">A sequence of arrays or array-like objects that you want to concatenate. These arrays must have the same shape, except in the dimension corresponding to axis.<\/span><\/td>\n<td><span style=\"font-weight: 400\">a1, a2, etc., are the arrays to concatenate.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">axis (optional)<\/span><\/td>\n<td><span style=\"font-weight: 400\">The axis along which the arrays will be joined. If axis is None, the arrays are flattened before use. The default is 0.<\/span><\/td>\n<td><span style=\"font-weight: 400\">axis is an optional parameter (default is 0).<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">out (optional)<\/span><\/td>\n<td><span style=\"font-weight: 400\">An optional parameter specifying the destination to place the result. The shape of out must be correct, matching that of what concatenate would have returned if no out argument were specified.<\/span><\/td>\n<td><span style=\"font-weight: 400\">out is an optional parameter.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">dtype (optional)<\/span><\/td>\n<td><span style=\"font-weight: 400\">An optional parameter specifying the data type of the destination array. Cannot be provided together with out.<\/span><\/td>\n<td><span style=\"font-weight: 400\">dtype is an optional parameter (new in v1.20.0).<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">casting (optional, new in v1.20.0)<\/span><\/td>\n<td><span style=\"font-weight: 400\">Controls what kind of data casting may occur during the concatenation process. Defaults to &#8216;same_kind&#8217;.<\/span><\/td>\n<td><span style=\"font-weight: 400\">casting is an optional parameter (new in v1.20.0).<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Returns<\/span><\/td>\n<td><span style=\"font-weight: 400\">The concatenated array containing the elements from the input arrays, joined along the specified axis.<\/span><\/td>\n<td><span style=\"font-weight: 400\">The function returns the concatenated array.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import numpy as np\r\n\r\n\r\n# Creating two arrays\r\narr1 = np.array([1, 2, 3])\r\narr2 = np.array([4, 5, 6])\r\n\r\n\r\n# Joining along rows (vertical stacking)\r\nconcatenated_array = np.concatenate((arr1, arr2))\r\n\r\n\r\nprint(\"Concatenated Array:\")\r\nprint(concatenated_array)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><strong>Concatenated Array: <\/strong>[1 2 3 4 5 6]<\/p>\n<h3>Joining with Axis<\/h3>\n<p>When joining arrays, you can specify the axis along which the concatenation should occur. Here are some essential points:<\/p>\n<p>If axis is 0 (the default), arrays are joined along rows (stacking vertically).<br \/>\nIf axis is 1, arrays are joined along columns (stacking horizontally).<br \/>\nIf axis is 2 or higher, it corresponds to higher-dimensional concatenation.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import numpy as np\r\n\r\n\r\n# Creating two 2D arrays\r\narr1 = np.array([[1, 2], [3, 4]])\r\narr2 = np.array([[5, 6]])\r\n\r\n\r\n# Joining along rows (vertical stacking, axis=0)\r\nconcatenated_axis0 = np.concatenate((arr1, arr2), axis=0)\r\n\r\n\r\n# Joining along columns (horizontal stacking, axis=1)\r\nconcatenated_axis1 = np.concatenate((arr1, arr2.T), axis=1)\r\n\r\n\r\nprint(\"Concatenated Along Rows (Axis 0):\")\r\nprint(concatenated_axis0)\r\n\r\n\r\nprint(\"Concatenated Along Columns (Axis 1):\")\r\nprint(concatenated_axis1)<\/pre>\n<p><strong>Output for Concatenation Along Rows (Axis 0):<\/strong><\/p>\n<p><strong>Concatenated Along Rows (Axis 0):<\/strong><br \/>\n[[1 2]<br \/>\n[3 4]<br \/>\n[5 6]]<\/p>\n<p><strong>Output for Concatenation Along Columns (Axis 1):<\/strong><\/p>\n<p><strong>Concatenated Along Columns (Axis 1):<\/strong><br \/>\n[[1 2 5]<br \/>\n[3 4 6]]<\/p>\n<h3>Stacking Arrays<\/h3>\n<p>Stacking is a common operation when joining arrays of the same dimension along a new axis. There are three types of stacking:<\/p>\n<h4>Horizontal Stacking:<\/h4>\n<p>This stacks arrays along rows.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import numpy as np\r\n\r\n\r\n# Creating two arrays\r\narr1 = np.array([1, 2, 3])\r\narr2 = np.array([4, 5, 6])\r\n\r\n\r\n# Horizontal stacking\r\nhorizontal_stacked = np.hstack((arr1, arr2))\r\n\r\n\r\nprint(\"Horizontal Stacking:\")\r\nprint(horizontal_stacked)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>Horizontal Stacking:<br \/>\n[1 2 3 4 5 6]<\/p>\n<h4>Vertical Stacking:<\/h4>\n<p>This stacks arrays along columns.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import numpy as np\r\n\r\n\r\n# Creating two arrays\r\narr1 = np.array([1, 2, 3])\r\narr2 = np.array([4, 5, 6])\r\n\r\n\r\n# Vertical stacking\r\nvertical_stacked = np.vstack((arr1, arr2))\r\n\r\n\r\nprint(\"Vertical Stacking:\")\r\nprint(vertical_stacked)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>Vertical Stacking:<br \/>\n[[1 2 3]<br \/>\n[4 5 6]]<\/p>\n<h4>Height Stacking:<\/h4>\n<p>This stacks arrays along the height dimension (for higher-dimensional arrays).<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import numpy as np\r\n\r\n\r\n# Creating two arrays\r\narr1 = np.array([1, 2, 3])\r\narr2 = np.array([4, 5, 6])\r\n\r\n\r\n# Height stacking\r\nheight_stacked = np.dstack((arr1, arr2))\r\n\r\n\r\nprint(\"Height Stacking:\")\r\nprint(height_stacked)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>Height Stacking:<br \/>\n[[[1 4]<br \/>\n[2 5]<br \/>\n[3 6]]]<\/p>\n<h3>Splitting Arrays with numpy.array_split<\/h3>\n<p>The opposite of joining is splitting, where one array is divided into multiple arrays. NumPy provides a useful function for this called numpy.array_split().<\/p>\n<p>numpy.split(ary, indices_or_sections, axis=0)<\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Parameter<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<td><strong>Example<\/strong><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">ary<\/span><\/td>\n<td><span style=\"font-weight: 400\">The input numpy array to be divided into sub-arrays.<\/span><\/td>\n<td><span style=\"font-weight: 400\">ary is the input array you want to split.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">indices_or_sections<\/span><\/td>\n<td><span style=\"font-weight: 400\">An integer or a 1-D array of sorted integers determines how the array will be split. If it&#8217;s an integer, it divides the array into N equal parts; if an array, it specifies where to split.<\/span><\/td>\n<td><span style=\"font-weight: 400\">indices_or_sections can be an integer or an array.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">axis (optional)<\/span><\/td>\n<td><span style=\"font-weight: 400\">The axis along which to split the array. The default value is 0.<\/span><\/td>\n<td><span style=\"font-weight: 400\">axis is an optional parameter (default is 0).<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Returns<\/span><\/td>\n<td><span style=\"font-weight: 400\">A list of sub-arrays as views into ary.<\/span><\/td>\n<td><span style=\"font-weight: 400\">The function returns a list of sub-arrays.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Raises<\/span><\/td>\n<td><span style=\"font-weight: 400\">ValueError is raised if indices_or_sections is given as an integer, but the split does not result in equal division.<\/span><\/td>\n<td><span style=\"font-weight: 400\">A ValueError exception may be raised if not<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Splitting Arrays in NumPy<\/h4>\n<p>numpy.array_split() divides an array into multiple sub-arrays.<\/p>\n<p>If the array cannot be divided evenly, it will adjust accordingly.<\/p>\n<p>If you want strict splitting (no adjustment), you can use numpy.split(). However, it may throw errors if elements are insufficient.<\/p>\n<h4>Accessing Split Arrays<\/h4>\n<p>After splitting an array, you can access the individual sub-arrays using index notation. For example, if you split an array into three parts, you can access them as split_array[0], split_array[1], and split_array[2].<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Creating an array\r\narr = np.array([1, 2, 3, 4, 5, 6])\r\n\r\n\r\n# Splitting into three parts\r\nsplit_array = np.array_split(arr, 3)\r\nprint(split_array)\r\n# Output: [array([1, 2]), array([3, 4]), array([5, 6])]\r\n\r\n\r\n# Accessing split arrays\r\nprint(split_array[0])\r\n# Output: [1 2]<\/pre>\n<h4>Splitting 2-D Arrays in NumPy<\/h4>\n<p>For 2-D arrays, you can use functions like hsplit() (horizontal split) and vsplit() (vertical split) to split arrays along rows or columns. There&#8217;s also dsplit() for arrays with three or more dimensions.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import numpy as np\r\n\r\n\r\n# Creating a 2-D array\r\narr = np.array([[1, 2, 3],\r\n                [4, 5, 6],\r\n                [7, 8, 9]])\r\n\r\n\r\n# Horizontal split into two arrays\r\nhorizontal_split = np.hsplit(arr, 2)\r\n\r\n\r\n# Vertical split into two arrays\r\nvertical_split = np.vsplit(arr, 3)\r\n\r\n\r\nprint(\"Horizontal Split:\")\r\nfor sub_arr in horizontal_split:\r\n    print(sub_arr)\r\n\r\n\r\nprint(\"\\nVertical Split:\")\r\nfor sub_arr in vertical_split:\r\n    print(sub_arr)<\/pre>\n<p><strong>Output for Horizontal Split:<\/strong><\/p>\n<p><strong>Horizontal Split:<\/strong><br \/>\n[[1 2]<br \/>\n[4 5]<br \/>\n[7 8]]<br \/>\n[[3]<br \/>\n[6]<br \/>\n[9]]<\/p>\n<p><strong>Output for Vertical Split:<\/strong><\/p>\n<p><strong>Vertical Split:<\/strong><br \/>\n[[1 2 3]]<br \/>\n[[4 5 6]]<br \/>\n[[7 8 9]]<\/p>\n<h3>Difference between Join and Split in NumPy<\/h3>\n<p><strong>Let&#8217;s summarize the key differences between joining and splitting arrays:<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Aspect<\/strong><\/td>\n<td><strong>Join<\/strong><\/td>\n<td><strong>Split<\/strong><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Operation<\/span><\/td>\n<td><span style=\"font-weight: 400\">Combines multiple arrays<\/span><\/td>\n<td><span style=\"font-weight: 400\">Divides one array into multiple arrays<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Primary Function<\/span><\/td>\n<td><span style=\"font-weight: 400\">numpy.concatenate()<\/span><\/td>\n<td><span style=\"font-weight: 400\">numpy.array_split() or numpy.split()<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Axis Specification<\/span><\/td>\n<td><span style=\"font-weight: 400\">Choose axis for joining<\/span><\/td>\n<td><span style=\"font-weight: 400\">Choose axis for splitting<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Adjustment for Uneven<\/span><\/td>\n<td><span style=\"font-weight: 400\">Adjusts for uneven data<\/span><\/td>\n<td><span style=\"font-weight: 400\">Adjusts or may throw errors for uneven data<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Accessing Split Arrays<\/span><\/td>\n<td><span style=\"font-weight: 400\">Not applicable<\/span><\/td>\n<td><span style=\"font-weight: 400\">Access using index notation<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Use for 2-D Arrays<\/span><\/td>\n<td><span style=\"font-weight: 400\">Stacking (vertical\/horizontal\/height)<\/span><\/td>\n<td><span style=\"font-weight: 400\">Splitting along rows\/columns<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Conclusion:<\/h3>\n<p>NumPy&#8217;s merging and partitioning functions offer robust capabilities for efficiently combining and segmenting arrays. Proficiency in concatenating arrays along various axes and dividing arrays into sub-arrays is essential for effective data handling in scientific computing, data analysis, and machine learning endeavors.<\/p>\n<p>By gaining expertise in these functions, you&#8217;ll enhance your ability to manage intricate data manipulation tasks within your Python projects. Enjoy coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NumPy&#8217;s split() and join() functions are essential tools for working with arrays of data. split() allows you to divide an array into multiple subarrays, while join() allows you to combine multiple subarrays into a&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":447213,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[385],"tags":[5505,383,418,419,420,5642,5644,5643,384,415],"class_list":["post-89229","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-numpy-tutorials","tag-array-join-split-in-numpy","tag-learn-numpy","tag-numpy-array-join-and-split","tag-numpy-array-tutorial","tag-numpy-join-and-split","tag-numpy-joining-and-splitting-array","tag-numpy-joining-array","tag-numpy-splitting-array","tag-numpy-tutorial","tag-numpy-tutorial-for-begginers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>NumPy Join and Split Array - TechVidvan<\/title>\n<meta name=\"description\" content=\"NumPy&#039;s merging and partitioning functions offer robust capabilities for efficiently combining and segmenting arrays.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/numpy-join-and-split-array\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"NumPy Join and Split Array - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"NumPy&#039;s merging and partitioning functions offer robust capabilities for efficiently combining and segmenting arrays.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/numpy-join-and-split-array\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-13T13:30:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-17T11:08:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/11\/numpy-array-join-split.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"NumPy Join and Split Array - TechVidvan","description":"NumPy's merging and partitioning functions offer robust capabilities for efficiently combining and segmenting arrays.","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:\/\/techvidvan.com\/tutorials\/numpy-join-and-split-array\/","og_locale":"en_US","og_type":"article","og_title":"NumPy Join and Split Array - TechVidvan","og_description":"NumPy's merging and partitioning functions offer robust capabilities for efficiently combining and segmenting arrays.","og_url":"https:\/\/techvidvan.com\/tutorials\/numpy-join-and-split-array\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2024-05-13T13:30:18+00:00","article_modified_time":"2024-05-17T11:08:04+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/11\/numpy-array-join-split.webp","type":"image\/webp"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/numpy-join-and-split-array\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/numpy-join-and-split-array\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/dde481bb412350cde1ed6e389bc0deaf"},"headline":"NumPy Join and Split Array","datePublished":"2024-05-13T13:30:18+00:00","dateModified":"2024-05-17T11:08:04+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/numpy-join-and-split-array\/"},"wordCount":944,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/numpy-join-and-split-array\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/11\/numpy-array-join-split.webp","keywords":["array join split in numpy","learn numpy","numpy array join and split","numpy array tutorial","numpy join and split","numpy joining and splitting array","numpy joining array","numpy splitting array","numPy tutorial","numpy tutorial for begginers"],"articleSection":["NumPy Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/numpy-join-and-split-array\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/numpy-join-and-split-array\/","url":"https:\/\/techvidvan.com\/tutorials\/numpy-join-and-split-array\/","name":"NumPy Join and Split Array - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/numpy-join-and-split-array\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/numpy-join-and-split-array\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/11\/numpy-array-join-split.webp","datePublished":"2024-05-13T13:30:18+00:00","dateModified":"2024-05-17T11:08:04+00:00","description":"NumPy's merging and partitioning functions offer robust capabilities for efficiently combining and segmenting arrays.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/numpy-join-and-split-array\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/numpy-join-and-split-array\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/numpy-join-and-split-array\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/11\/numpy-array-join-split.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/11\/numpy-array-join-split.webp","width":1200,"height":628,"caption":"numpy array join split"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/numpy-join-and-split-array\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"NumPy Join and Split Array"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/dde481bb412350cde1ed6e389bc0deaf","name":"TechVidvan Team"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/89229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=89229"}],"version-history":[{"count":7,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/89229\/revisions"}],"predecessor-version":[{"id":447501,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/89229\/revisions\/447501"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/447213"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=89229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=89229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=89229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}