{"id":20191,"date":"2020-07-24T23:26:18","date_gmt":"2020-07-25T06:26:18","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=20191"},"modified":"2023-12-01T03:56:06","modified_gmt":"2023-12-01T11:56:06","slug":"numpy-concatenate","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/","title":{"rendered":"NumPy Concatenate: A Guide"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">How to Concatenate NumPy Arrays<\/h2>\n\n\n\n<p><a href=\"https:\/\/careerkarma.com\/subjects\/best-numpy-bootcamps\/\">NumPy<\/a> is an excellent library for working with arrays in <a href=\"https:\/\/careerkarma.com\/blog\/how-to-learn-python\/\">Python<\/a>. It covers everything from creating to manipulating arrays of all sizes. It\u2019s no surprise then that NumPy comes with a utility that you can use to concatenate arrays.<br><\/p>\n\n\n\n<p>The <code>numpy.concatenate()<\/code> method joins two or more arrays into a single array.<br><\/p>\n\n\n\n<p>In this guide, we\u2019re going to talk about what NumPy arrays are and how you can concatenate them. We\u2019ll walk through a few examples to help you get started. Let\u2019s begin!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Structure of an Array<\/h2>\n\n\n\n<p>A <a href=\"https:\/\/careerkarma.com\/blog\/numpy-array\/\">NumPy array<\/a> is a type of <a href=\"https:\/\/careerkarma.com\/blog\/python-array\/\">array<\/a> that works with the NumPy library. It looks like any other array but it is stored inside an ndarray object:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>array([1, 2, 3])<\/pre><\/div>\n\n\n\n<p>To work with a NumPy array, we need to <a href=\"https:\/\/careerkarma.com\/blog\/python-import\/\">import the numpy library<\/a>:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import numpy as np<\/pre><\/div>\n\n\n\n<p>We\u2019re going to concatenate two arrays. One array will contain all the numbers between 1 and 9 (inclusive). The second array will contain all the numbers between 10 and 18 (inclusive).<br><\/p>\n\n\n\n<p>Let\u2019s create these arrays using the <code>arange()<\/code> method:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>first_array = np.arange(1, 10).reshape(3, 3)\nsecond_array = np.arange(10, 19).reshape(3, 3)\n\nprint(first_array)\nprint(second_array)<\/pre><\/div>\n\n\n\n<p>This code creates two arrays. Each array is a 2d array. We have made these arrays 2d by using the <code>reshape()<\/code> method which creates a 3&#215;3 grid for each array:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>[[1 2 3]\n [4 5 6]\n [7 8 9]]\n[[10 11 12]\n [13 14 15]\n [16 17 18]]<\/pre><\/div>\n\n\n\n<p>We now have two arrays with which we can work! Let\u2019s concatenate them using <code>concatenate()<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">NumPy Concatenation<\/h2>\n\n\n\n<p>You can concatenate an array on two axes: by row or by column. This is accomplished using the <code>concatenate()<\/code> method. The concatenate method can merge 1d, 2d, 3d, 4d, and arrays with a higher number of dimensions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Concatenate by Row<\/h3>\n\n\n\n<p>We\u2019ll start by concatenating our two arrays by row. This will align the items in our two arrays by row and merge them into one array:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>final_array = np.concatenate((first_array, second_array))\nprint(final_array)<\/pre><\/div>\n\n\n\n<p>We have specified a tuple inside the <code>concatenate()<\/code> function. This tuple contains the list of arrays that we want to concatenate. Without any parameters, <code>concatenate()<\/code> concatenates by row.<br><\/p>\n\n\n\n<p>Our code returns:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>[[ 1  2  3]\n [ 4  5  6]\n [ 7  8  9]\n [10 11 12]\n [13 14 15]\n [16 17 18]]<\/pre><\/div>\n\n\n\n<p>Our arrays are concatenated by rows.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Concatenate by Column<\/h3>\n\n\n\n<p>You can use the concatenate method to merge two arrays by column.<br><\/p>\n\n\n\n<p>To do this, we need to introduce a new parameter: axis. By default, this value is 0. This corresponds to the x axis, or the row axis. We can override this value and set it to 1. This will merge our two arrays by column.<br><\/p>\n\n\n\n<p>Let\u2019s concatenate our two arrays by column:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>final_array = np.concatenate((first_array, second_array), axis=1)\nprint(final_array)<\/pre><\/div>\n\n\n\n<p>Our code is almost the same as our last example. The difference is that we have specified the axis=1 parameter. Let\u2019s see what happens when we run our code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>[[ 1  2  3 10 11 12]\n [ 4  5  6 13 14 15]\n [ 7  8  9 16 17 18]]<\/pre><\/div>\n\n\n\n<p>Our arrays are merged by column.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Concatenating More Than Two Arrays<\/h2>\n\n\n\n<p>The <code>concatenate()<\/code> method can concatenate any number of arrays. Let\u2019s try to concatenate three arrays on a horizontal axis. The arrays with which we will be working contain all numbers in the range of:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>1 to 9 (inclusive).<\/li><li>10 to 18 (inclusive).<\/li><li>19 to 27 (inclusive).<\/li><\/ul>\n\n\n\n<p>Let\u2019s define our arrays in Python:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>first_array = np.arange(1, 10).reshape(3, 3)\nsecond_array = np.arange(10, 19).reshape(3, 3)\nthird_array = np.arange(19, 28).reshape(3, 3)<\/pre><\/div>\n\n\n\n<p>Next, we can use concatenate to merge them together:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>final_array = np.concatenate((first_array, second_array, third_array), axis=1)\nprint(final_array)<\/pre><\/div>\n\n\n\n<p>We have specified our three arrays as a tuple in the <code>concatenate()<\/code> method. When combined, these arrays correspond to all the numbers between 1 and 27.&nbsp;<br><\/p>\n\n\n\n<p>Let\u2019s run our program:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>[[ 1  2  3 10 11 12 19 20 21]\n [ 4  5  6 13 14 15 22 23 24]\n [ 7  8  9 16 17 18 25 26 27]]<\/pre><\/div>\n\n\n\n<p>Our three arrays are now assigned to the variable \u201cfinal_array\u201d. We have printed this variable to the console to show that our arrays have been successfully merged.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The NumPy <code>concatenate()<\/code> method joins two or more NumPy arrays. Arrays are joined on the vertical axis by default. You can join arrays on the horizontal access using the axis=1 flag.<br><\/p>\n\n\n\n<p>You can concatenate two or more 1d arrays using the vstack and hstack methods. <code>concatenate()<\/code> is <a href=\"https:\/\/stackoverflow.com\/questions\/9236926\/concatenating-two-one-dimensional-numpy-arrays\" target=\"_blank\" rel=\"noopener\" rel=\"nofollow\">more efficient<\/a> than these methods. <code>concatenate()<\/code> also supports concatenating 2d, 3d, and higher dimension arrays.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to start concatenating NumPy arrays like a Python expert!<\/p>\n","protected":false},"excerpt":{"rendered":"How to Concatenate NumPy Arrays NumPy is an excellent library for working with arrays in Python. It covers everything from creating to manipulating arrays of all sizes. It\u2019s no surprise then that NumPy comes with a utility that you can use to concatenate arrays. The numpy.concatenate() method joins two or more arrays into a single&hellip;","protected":false},"author":240,"featured_media":20193,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-20191","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Python","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>NumPy Concatenate: A Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"The NumPy concatenate method is used to merge two or more arrays into one array. On Career Karma, learn how to use the NumPy concatenate method.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"NumPy Concatenate: A Guide\" \/>\n<meta property=\"og:description\" content=\"The NumPy concatenate method is used to merge two or more arrays into one array. On Career Karma, learn how to use the NumPy concatenate method.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-25T06:26:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:56:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/matthew-fournier-5NM32v14n6M-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"670\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"NumPy Concatenate: A Guide\",\"datePublished\":\"2020-07-25T06:26:18+00:00\",\"dateModified\":\"2023-12-01T11:56:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/\"},\"wordCount\":617,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/matthew-fournier-5NM32v14n6M-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/\",\"name\":\"NumPy Concatenate: A Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/matthew-fournier-5NM32v14n6M-unsplash.jpg\",\"datePublished\":\"2020-07-25T06:26:18+00:00\",\"dateModified\":\"2023-12-01T11:56:06+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The NumPy concatenate method is used to merge two or more arrays into one array. On Career Karma, learn how to use the NumPy concatenate method.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/matthew-fournier-5NM32v14n6M-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/matthew-fournier-5NM32v14n6M-unsplash.jpg\",\"width\":1020,\"height\":670},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/careerkarma.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\",\"item\":\"https:\/\/careerkarma.com\/blog\/python\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"NumPy Concatenate: A Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\",\"url\":\"https:\/\/careerkarma.com\/blog\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/careerkarma.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"NumPy Concatenate: A Guide | Career Karma","description":"The NumPy concatenate method is used to merge two or more arrays into one array. On Career Karma, learn how to use the NumPy concatenate method.","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:\/\/careerkarma.com\/blog\/numpy-concatenate\/","og_locale":"en_US","og_type":"article","og_title":"NumPy Concatenate: A Guide","og_description":"The NumPy concatenate method is used to merge two or more arrays into one array. On Career Karma, learn how to use the NumPy concatenate method.","og_url":"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-07-25T06:26:18+00:00","article_modified_time":"2023-12-01T11:56:06+00:00","og_image":[{"width":1020,"height":670,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/matthew-fournier-5NM32v14n6M-unsplash.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"NumPy Concatenate: A Guide","datePublished":"2020-07-25T06:26:18+00:00","dateModified":"2023-12-01T11:56:06+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/"},"wordCount":617,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/matthew-fournier-5NM32v14n6M-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/numpy-concatenate\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/","url":"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/","name":"NumPy Concatenate: A Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/matthew-fournier-5NM32v14n6M-unsplash.jpg","datePublished":"2020-07-25T06:26:18+00:00","dateModified":"2023-12-01T11:56:06+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The NumPy concatenate method is used to merge two or more arrays into one array. On Career Karma, learn how to use the NumPy concatenate method.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/numpy-concatenate\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/matthew-fournier-5NM32v14n6M-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/matthew-fournier-5NM32v14n6M-unsplash.jpg","width":1020,"height":670},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/numpy-concatenate\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Python","item":"https:\/\/careerkarma.com\/blog\/python\/"},{"@type":"ListItem","position":3,"name":"NumPy Concatenate: A Guide"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/20191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=20191"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/20191\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/20193"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=20191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=20191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=20191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}