{"id":3486,"date":"2023-10-22T17:18:41","date_gmt":"2023-10-22T11:48:41","guid":{"rendered":"https:\/\/python-programs.com\/?p=3486"},"modified":"2023-11-10T11:54:12","modified_gmt":"2023-11-10T06:24:12","slug":"python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/","title":{"rendered":"Python Numpy : Select rows \/ columns by index from a 2D Numpy Array | Multi Dimension"},"content":{"rendered":"

Working with Numpy Arrays: Indexing<\/h3>\n

You have to be familiar with indexing if you want to work with Numpy arrays and matrices.\u00a0You will use them when you would like to work with a subset of the array.<\/p>\n

About 2d numpy array:<\/h3>\n

These dimentionals arrays are also known as matrices which can be shown as collection of rows and columns. In this article, we are going to show\u00a0 2D array in Numpy in Python. NumPy is a very important library in python. We used NumPy for adding support for large multidimensional arrays & matrices .<\/p>\n

Importing numpy module in your project:<\/p>\n

import<\/span> numpy <\/span>as<\/span> np<\/span>\r\n<\/pre>\n

Indexing a Two-dimensional Array<\/h3>\n
import numpy as np\r\narray1 = np.arange(12).reshape(4,3)\r\nprint(array1)\r\n<\/pre>\n

Output:<\/strong><\/p>\n

RESTART: C:\/Users\/HP\/Desktop\/article2.py\r\n[[ 0 1 2]\r\n[ 3 4 5]\r\n[ 6 7 8]\r\n[ 9 10 11]]\r\n<\/pre>\n

Here we use two indices,one we use for rows and one for column.Both the column and the row indices start from 0.<\/p>\n

So in above all example we are going to use same matrices.<\/p>\n

Select a single element from 2D Numpy Array by index<\/h3>\n

We can use [][] tese brackets to select an element from Numpy Array .<\/p>\n

array1<\/span>[<\/span>row_index<\/span>][<\/span>column_index<\/span>]<\/span>\r\n<\/pre>\n

So if i want to access the element \u201810,\u2019 we use the index \u20183\u2019 for the row and index \u20181\u2019 for the column.<\/p>\n

import numpy as np\r\narray1 = np.arange(12).reshape(4,3)\r\narray1= array1[3][1]\r\nprint(array1)<\/pre>\n

Output:<\/strong><\/p>\n

RESTART: C:\/Users\/HP\/Desktop\/article2.py\r\n\r\n10\r\n<\/pre>\n

Select Rows by Index from a 2D Numpy Array<\/h3>\n

We can use [] this bracket to select a single or multiple row. For single row use-<\/p>\n

array1<\/span>[<\/span>row_index<\/span>]<\/span>\r\n<\/pre>\n

Let’s take an example,<\/p>\n

import numpy as np\r\narray1 = np.arange(12).reshape(4,3)\r\nrow = array1[1]\r\nprint(row)\r\n<\/pre>\n

Output:<\/strong><\/p>\n

RESTART: C:\/Users\/HP\/Desktop\/article2.py\r\n[3 4 5]\r\n<\/pre>\n

For multiple rows use,<\/p>\n

array1<\/span>[<\/span>start_index: end_index , :<\/span>]<\/span>\r\n<\/pre>\n

Let’s take an example,<\/p>\n

import numpy as np\r\narray1 = np.arange(12).reshape(4,3)\r\nrows = array1[1:3, :]\r\nprint(rows)<\/pre>\n

Output:<\/strong><\/p>\n

RESTART: C:\/Users\/HP\/Desktop\/article2.py\r\n[[3 4 5]\r\n[6 7 8]]\r\n<\/pre>\n

Select Columns by Index from a 2D Numpy Array<\/h3>\n

Syntax for single column use,<\/p>\n

array1<\/span>[<\/span> : , column_index<\/span>]<\/span>\r\n<\/pre>\n

Lets take an example,<\/p>\n

import numpy as np\r\narray1 = np.arange(12).reshape(4,3)\r\ncolumn = array1[:, 1]\r\nprint(column)<\/pre>\n

Output:<\/strong><\/p>\n

RESTART: C:\/Users\/HP\/Desktop\/article2.py\r\n[ 1 4 7 10]\r\n<\/pre>\n

Syntax to select multiple columns,<\/p>\n

ndArray<\/span>[<\/span> : , start_index: end_index<\/span>]<\/span>\r\n<\/pre>\n

Lets take an example,<\/p>\n

import numpy as np\r\narray1 = np.arange(12).reshape(4,3)\r\ncolumns = array1[: , 1:3]\r\nprint(columns)<\/pre>\n

Output:<\/strong><\/p>\n

RESTART: C:\/Users\/HP\/Desktop\/article2.py\r\n[[ 1 2]\r\n[ 4 5]\r\n[ 7 8]\r\n[10 11]]\r\n<\/pre>\n

Select a Sub Matrix or 2d Numpy Array from another 2D Numpy Array<\/h3>\n

For sub 2d Numpy Array we pass the row & column index range in [] .<\/p>\n

Syntax for this is,<\/p>\n

ndArray<\/span>[<\/span>start_row_index : end_row_index , start_column_index : end_column_index<\/span>]<\/span>\r\n<\/pre>\n

lets take an example,<\/p>\n

import numpy as np\r\narray1 = np.arange(12).reshape(4,3)\r\nsub2DArr = array1[1:3, 1:3]\r\nprint(sub2DArr)\r\n<\/pre>\n

Output:<\/strong><\/p>\n

RESTART: C:\/Users\/HP\/Desktop\/article2.py\r\n[[4 5]\r\n[7 8]]\r\n\r\n<\/pre>\n

Selected Row or Column or Sub Array is View only<\/h3>\n

This is for view only i.e. if there is\u00a0 any modification in returned sub array will be reflected in original Numpy Array .<\/p>\n

We are going to take same array which we have created in start of this article.<\/p>\n

import numpy as np\r\narray1 = np.arange(12).reshape(4,3)\r\nrow = array1[1]\r\nprint(row)<\/pre>\n

Output:<\/strong><\/p>\n

RESTART: C:\/Users\/HP\/Desktop\/article2.py\r\n[3 4 5]\r\n<\/pre>\n

Now for any modification in the same row,<\/p>\n

import numpy as np\r\narray1 = np.arange(12).reshape(4,3)\r\nrow = array1[1]\r\nrow[:] = 20\r\nprint(row)<\/pre>\n

Output:<\/strong><\/p>\n

RESTART: C:\/Users\/HP\/Desktop\/article2.py\r\n[20 20 20]\r\n<\/pre>\n

Modification in sub array will be shown in main Numpy Array too. Updated \\ 2D Numpy Array array1<\/strong>\u00a0are,<\/p>\n

[[ 0\u00a0 \u00a0 \u00a01\u00a0 \u00a0 \u00a0 2]\r\n[20    20     20]\r\n[ 6\u00a0 \u00a0 \u00a07\u00a0 \u00a0 \u00a0 8]\r\n[ 9\u00a0 \u00a0 10\u00a0 \u00a011]]\r\n<\/pre>\n

Get a copy of 2D Sub Array from 2D Numpy Array using ndarray.copy()<\/h3>\n

Create a 2D Numpy array1 with3 rows & columns | Matrix<\/p>\n

import numpy as np\r\narray1 = np.array(([12, 22, 13], [21, 25, 30], [33, 17, 19]))\r\nprint(array1)<\/pre>\n

Output:<\/strong><\/p>\n

RESTART: C:\/Users\/HP\/Desktop\/article2.py\r\n[[12 22 13]\r\n[21 25 30]\r\n[33 17 19]]\r\n<\/pre>\n

Select a copy of row at index 1 from 2D array and set all the elements in selected sub array to 20.<\/p>\n

array1 = np.array(([12, 22, 13], [21, 25, 30], [33, 17, 19]))\r\nrow=array1[1].copy()\r\nrow[:] = 20\r\nprint(row)\r\n<\/pre>\n

Output:<\/strong><\/p>\n

RESTART: C:\/Users\/HP\/Desktop\/article2.py\r\n[20 20 20]\r\n<\/pre>\n

Conclusion:<\/h3>\n

So in this article we have seen how to work with NumPy arrays.Hope you have understood everything.<\/p>\n","protected":false},"excerpt":{"rendered":"

Working with Numpy Arrays: Indexing You have to be familiar with indexing if you want to work with Numpy arrays and matrices.\u00a0You will use them when you would like to work with a subset of the array. About 2d numpy array: These dimentionals arrays are also known as matrices which can be shown as collection …<\/p>\n

Python Numpy : Select rows \/ columns by index from a 2D Numpy Array | Multi Dimension<\/span> Read More »<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[5],"tags":[],"yoast_head":"\nPython Numpy : Select rows \/ columns by index from a 2D Numpy Array | Multi Dimension - Python Programs<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Numpy : Select rows \/ columns by index from a 2D Numpy Array | Multi Dimension - Python Programs\" \/>\n<meta property=\"og:description\" content=\"Working with Numpy Arrays: Indexing You have to be familiar with indexing if you want to work with Numpy arrays and matrices.\u00a0You will use them when you would like to work with a subset of the array. About 2d numpy array: These dimentionals arrays are also known as matrices which can be shown as collection … Python Numpy : Select rows \/ columns by index from a 2D Numpy Array | Multi Dimension Read More »\" \/>\n<meta property=\"og:url\" content=\"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Programs\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/btechgeeks\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-22T11:48:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-10T06:24:12+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@btech_geeks\" \/>\n<meta name=\"twitter:site\" content=\"@btech_geeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shikha Mishra\" \/>\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\":\"Organization\",\"@id\":\"https:\/\/python-programs.com\/#organization\",\"name\":\"BTech Geeks\",\"url\":\"https:\/\/python-programs.com\/\",\"sameAs\":[\"https:\/\/www.instagram.com\/btechgeeks\/\",\"https:\/\/www.linkedin.com\/in\/btechgeeks\",\"https:\/\/in.pinterest.com\/btechgeek\/\",\"https:\/\/www.youtube.com\/channel\/UC9MlCqdJ3lKqz2p5114SDIg\",\"https:\/\/www.facebook.com\/btechgeeks\",\"https:\/\/twitter.com\/btech_geeks\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/python-programs.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/python-programs.com\/wp-content\/uploads\/2020\/11\/BTechGeeks.png\",\"contentUrl\":\"https:\/\/python-programs.com\/wp-content\/uploads\/2020\/11\/BTechGeeks.png\",\"width\":350,\"height\":70,\"caption\":\"BTech Geeks\"},\"image\":{\"@id\":\"https:\/\/python-programs.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/python-programs.com\/#website\",\"url\":\"https:\/\/python-programs.com\/\",\"name\":\"Python Programs\",\"description\":\"Python Programs with Examples, How To Guides on Python\",\"publisher\":{\"@id\":\"https:\/\/python-programs.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/python-programs.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/#webpage\",\"url\":\"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/\",\"name\":\"Python Numpy : Select rows \/ columns by index from a 2D Numpy Array | Multi Dimension - Python Programs\",\"isPartOf\":{\"@id\":\"https:\/\/python-programs.com\/#website\"},\"datePublished\":\"2023-10-22T11:48:41+00:00\",\"dateModified\":\"2023-11-10T06:24:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/python-programs.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python Numpy : Select rows \/ columns by index from a 2D Numpy Array | Multi Dimension\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/#webpage\"},\"author\":{\"@id\":\"https:\/\/python-programs.com\/#\/schema\/person\/7a690ac49394cc96d2e839bf9a746594\"},\"headline\":\"Python Numpy : Select rows \/ columns by index from a 2D Numpy Array | Multi Dimension\",\"datePublished\":\"2023-10-22T11:48:41+00:00\",\"dateModified\":\"2023-11-10T06:24:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/#webpage\"},\"wordCount\":443,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/python-programs.com\/#organization\"},\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/python-programs.com\/#\/schema\/person\/7a690ac49394cc96d2e839bf9a746594\",\"name\":\"Shikha Mishra\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/python-programs.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/10a27cfafdf21564c686b80411336ece?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/10a27cfafdf21564c686b80411336ece?s=96&d=mm&r=g\",\"caption\":\"Shikha Mishra\"},\"url\":\"https:\/\/python-programs.com\/author\/shikha\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Numpy : Select rows \/ columns by index from a 2D Numpy Array | Multi Dimension - Python Programs","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:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/","og_locale":"en_US","og_type":"article","og_title":"Python Numpy : Select rows \/ columns by index from a 2D Numpy Array | Multi Dimension - Python Programs","og_description":"Working with Numpy Arrays: Indexing You have to be familiar with indexing if you want to work with Numpy arrays and matrices.\u00a0You will use them when you would like to work with a subset of the array. About 2d numpy array: These dimentionals arrays are also known as matrices which can be shown as collection … Python Numpy : Select rows \/ columns by index from a 2D Numpy Array | Multi Dimension Read More »","og_url":"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/","og_site_name":"Python Programs","article_publisher":"https:\/\/www.facebook.com\/btechgeeks","article_published_time":"2023-10-22T11:48:41+00:00","article_modified_time":"2023-11-10T06:24:12+00:00","twitter_card":"summary_large_image","twitter_creator":"@btech_geeks","twitter_site":"@btech_geeks","twitter_misc":{"Written by":"Shikha Mishra","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/python-programs.com\/#organization","name":"BTech Geeks","url":"https:\/\/python-programs.com\/","sameAs":["https:\/\/www.instagram.com\/btechgeeks\/","https:\/\/www.linkedin.com\/in\/btechgeeks","https:\/\/in.pinterest.com\/btechgeek\/","https:\/\/www.youtube.com\/channel\/UC9MlCqdJ3lKqz2p5114SDIg","https:\/\/www.facebook.com\/btechgeeks","https:\/\/twitter.com\/btech_geeks"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/python-programs.com\/#\/schema\/logo\/image\/","url":"https:\/\/python-programs.com\/wp-content\/uploads\/2020\/11\/BTechGeeks.png","contentUrl":"https:\/\/python-programs.com\/wp-content\/uploads\/2020\/11\/BTechGeeks.png","width":350,"height":70,"caption":"BTech Geeks"},"image":{"@id":"https:\/\/python-programs.com\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/python-programs.com\/#website","url":"https:\/\/python-programs.com\/","name":"Python Programs","description":"Python Programs with Examples, How To Guides on Python","publisher":{"@id":"https:\/\/python-programs.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/python-programs.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/#webpage","url":"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/","name":"Python Numpy : Select rows \/ columns by index from a 2D Numpy Array | Multi Dimension - Python Programs","isPartOf":{"@id":"https:\/\/python-programs.com\/#website"},"datePublished":"2023-10-22T11:48:41+00:00","dateModified":"2023-11-10T06:24:12+00:00","breadcrumb":{"@id":"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/python-programs.com\/"},{"@type":"ListItem","position":2,"name":"Python Numpy : Select rows \/ columns by index from a 2D Numpy Array | Multi Dimension"}]},{"@type":"Article","@id":"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/#article","isPartOf":{"@id":"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/#webpage"},"author":{"@id":"https:\/\/python-programs.com\/#\/schema\/person\/7a690ac49394cc96d2e839bf9a746594"},"headline":"Python Numpy : Select rows \/ columns by index from a 2D Numpy Array | Multi Dimension","datePublished":"2023-10-22T11:48:41+00:00","dateModified":"2023-11-10T06:24:12+00:00","mainEntityOfPage":{"@id":"https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/#webpage"},"wordCount":443,"commentCount":0,"publisher":{"@id":"https:\/\/python-programs.com\/#organization"},"articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/python-programs.com\/python-numpy-select-rows-columns-by-index-from-a-2d-numpy-array-multi-dimension\/#respond"]}]},{"@type":"Person","@id":"https:\/\/python-programs.com\/#\/schema\/person\/7a690ac49394cc96d2e839bf9a746594","name":"Shikha Mishra","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/python-programs.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/10a27cfafdf21564c686b80411336ece?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10a27cfafdf21564c686b80411336ece?s=96&d=mm&r=g","caption":"Shikha Mishra"},"url":"https:\/\/python-programs.com\/author\/shikha\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/posts\/3486"}],"collection":[{"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/comments?post=3486"}],"version-history":[{"count":1,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/posts\/3486\/revisions"}],"predecessor-version":[{"id":3529,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/posts\/3486\/revisions\/3529"}],"wp:attachment":[{"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/media?parent=3486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/categories?post=3486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/tags?post=3486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}