{"id":4717,"date":"2021-05-01T14:57:45","date_gmt":"2021-05-01T09:27:45","guid":{"rendered":"https:\/\/python-programs.com\/?p=4717"},"modified":"2021-11-22T18:49:07","modified_gmt":"2021-11-22T13:19:07","slug":"pandas-get-sum-of-column-values-in-a-dataframe","status":"publish","type":"post","link":"https:\/\/python-programs.com\/pandas-get-sum-of-column-values-in-a-dataframe\/","title":{"rendered":"Pandas: Get sum of column values in a Dataframe"},"content":{"rendered":"

How to get the sum of column values in a dataframe in Python ?<\/h2>\n

In this article, we will discuss about how to get the sum To find the sum of values in a dataframe. So, let’s start exploring the topic.<\/p>\n

Select the column by name and get the sum of all values in that column :<\/h3>\n

To find the sum of values of a single column we have to use the sum( )<\/code> or the loc[ ]<\/code> function.<\/p>\n

Using sum() :<\/h4>\n

Here by using sum( )<\/code> only, we selected a column from a dataframe by the column name and from that we can get the sum of values in that column.<\/p>\n

Syntax- dataFrame_Object[\u2018column_name\u2019].sum( )<\/pre>\n
#Program :\r\n\r\nimport numpy as np\r\nimport pandas as pd\r\n# Example data\r\nstudents = [('Jill',\u00a0\u00a0\u00a0 16,\u00a0\u00a0\u00a0\u00a0 'Tokyo',\u00a0 150),\r\n('Rachel',\u00a0\u00a0\u00a0 38,\u00a0\u00a0\u00a0\u00a0 'Texas',\u00a0\u00a0 177),\r\n('Kirti',\u00a0\u00a0\u00a0 39,\u00a0\u00a0\u00a0\u00a0 'New York',\u00a0 97),\r\n('Veena',\u00a0\u00a0 40,\u00a0\u00a0\u00a0\u00a0 'Texas',\u00a0\u00a0 np.NaN),\r\n('Lucifer',\u00a0\u00a0 np.NaN, 'Texas',\u00a0\u00a0 130),\r\n('Pablo', 30,\u00a0\u00a0\u00a0\u00a0 'New York',\u00a0 155),\r\n('Lionel',\u00a0\u00a0 45,\u00a0\u00a0\u00a0\u00a0 'Colombia', 121) ]\r\ndfObj = pd.DataFrame(students, columns=['Name','Age','City','Score'])\r\n#Sum of all values in the 'Score' column of the dataframe\r\ntotalSum = dfObj['Score'].sum()\r\nprint(totalSum)<\/pre>\n
Output :\r\n830.0<\/pre>\n

Using loc[ ] :<\/h4>\n

Here by using loc[]<\/code> and\u00a0 sum( )<\/code> only, we selected a column from a dataframe by the column name and from that we can get the sum of values in that column.<\/p>\n

Syntax- dataFrame_Object_name.loc[:, \u2018column_name\u2019].sum( )<\/em><\/p>\n

So, let’s see the implementation of it by taking an example.<\/p>\n

#Program :\r\n\r\nimport numpy as np\r\nimport pandas as pd\r\n# Example data\r\nstudents = [('Jill',\u00a0\u00a0\u00a0 16,\u00a0\u00a0\u00a0\u00a0 'Tokyo',\u00a0 150),\r\n('Rachel',\u00a0\u00a0\u00a0 38,\u00a0\u00a0\u00a0\u00a0 'Texas',\u00a0\u00a0 177),\r\n('Kirti',\u00a0\u00a0\u00a0 39,\u00a0\u00a0\u00a0\u00a0 'New York',\u00a0 97),\r\n('Veena',\u00a0\u00a0 40,\u00a0\u00a0\u00a0\u00a0 'Texas',\u00a0\u00a0 np.NaN),\r\n('Lucifer',\u00a0\u00a0 np.NaN, 'Texas',\u00a0\u00a0 130),\r\n('Pablo', 30,\u00a0\u00a0\u00a0\u00a0 'New York',\u00a0 155),\r\n('Lionel',\u00a0\u00a0 45,\u00a0\u00a0\u00a0\u00a0 'Colombia', 121) ]\r\ndfObj = pd.DataFrame(students, columns=['Name','Age','City','Score'])\r\n#Sum of all values in the 'Score' column of the dataframe using loc[ ]\r\ntotalSum = dfObj.loc[:, 'Score'].sum()\r\nprint(totalSum)<\/pre>\n
Output :\r\n830.0<\/pre>\n

Select the column by position and get the sum of all values in that column :<\/h3>\n

In case we don\u2019t know about the column name but we know its position, we can find the sum of all value in that column using both iloc[ ]<\/code> and sum( )<\/code>. The iloc[ ] returns a series of values which is then passed into the sum( )<\/code> function.<\/p>\n

So, let’s see the implementation of it by taking an example.<\/p>\n

#Program :\r\n\r\nimport numpy as np\r\nimport pandas as pd\r\n\r\n# Example data\r\nstudents = [('Jill',\u00a0\u00a0\u00a0 16,\u00a0\u00a0\u00a0\u00a0 'Tokyo',\u00a0 150),\r\n('Rachel',\u00a0\u00a0\u00a0 38,\u00a0\u00a0\u00a0\u00a0 'Texas',\u00a0\u00a0 177),\r\n('Kirti',\u00a0\u00a0\u00a0 39,\u00a0\u00a0\u00a0\u00a0 'New York',\u00a0 97),\r\n('Veena',\u00a0\u00a0 40,\u00a0\u00a0\u00a0\u00a0 'Texas',\u00a0\u00a0 np.NaN),\r\n('Lucifer',\u00a0\u00a0 np.NaN, 'Texas',\u00a0\u00a0 130),\r\n('Pablo', 30,\u00a0\u00a0\u00a0\u00a0 'New York',\u00a0 155),\r\n('Lionel',\u00a0\u00a0 45,\u00a0\u00a0\u00a0\u00a0 'Colombia', 121) ]\r\ndfObj = pd.DataFrame(students, columns=['Name','Age','City','Score'])\r\ncolumn_number = 4\r\n# Total sum of values in 4th column i.e. \u2018Score\u2019\r\ntotalSum = dfObj.iloc[:, column_number-1:column_number].sum()\r\nprint(totalSum)<\/pre>\n
Output :\r\nScore\u00a0\u00a0\u00a0 830.0\r\ndtype: float64<\/pre>\n

Find the sum of columns values for selected rows only in Dataframe :<\/h3>\n

If we need the sum of values from a column\u2019s specific entries we can-<\/p>\n

So, let’s see the implementation of it by taking an example.<\/p>\n

#Program :\r\n\r\nimport numpy as np\r\nimport pandas as pd\r\n\r\n# Example data\r\nstudents = [('Jill',\u00a0\u00a0\u00a0 16,\u00a0\u00a0\u00a0\u00a0 'Tokyo',\u00a0 150),\r\n('Rachel',\u00a0\u00a0\u00a0 38,\u00a0\u00a0\u00a0\u00a0 'Texas',\u00a0\u00a0 177),\r\n('Kirti',\u00a0\u00a0\u00a0 39,\u00a0\u00a0\u00a0\u00a0 'New York',\u00a0 97),\r\n('Veena',\u00a0\u00a0 40,\u00a0\u00a0\u00a0\u00a0 'Texas',\u00a0\u00a0 np.NaN),\r\n('Lucifer',\u00a0\u00a0 np.NaN, 'Texas',\u00a0\u00a0 130),\r\n('Pablo', 30,\u00a0\u00a0\u00a0\u00a0 'New York',\u00a0 155),\r\n('Lionel',\u00a0\u00a0 45,\u00a0\u00a0\u00a0\u00a0 'Colombia', 121) ]\r\ndfObj = pd.DataFrame(students, columns=['Name','Age','City','Score'])\r\ncolumn_number = 4\r\nentries = 3\r\n#Sum of the first three values from the 4th column\r\ntotalSum = dfObj.iloc[0:entries, column_number-1:column_number].sum()\r\nprint(totalSum)<\/pre>\n
Output :\r\nScore\u00a0\u00a0\u00a0 424.0\r\ndtype: float64<\/pre>\n

Find the sum of column values in a dataframe based on condition :<\/strong><\/h3>\n

In case we want the sum of all values that follows our conditions, for example scores of a particular city like New York can be found out by –<\/p>\n

So, let’s see the implementation of it by taking an example.<\/p>\n

#Program :\r\n\r\nimport numpy as np\r\nimport pandas as pd\r\n\r\n# Example data\r\nstudents = [('Jill',\u00a0\u00a0\u00a0 16,\u00a0\u00a0\u00a0\u00a0 'Tokyo',\u00a0 150),\r\n('Rachel',\u00a0\u00a0\u00a0 38,\u00a0\u00a0\u00a0\u00a0 'Texas',\u00a0\u00a0 177),\r\n('Kirti',\u00a0\u00a0\u00a0 39,\u00a0\u00a0\u00a0\u00a0 'New York',\u00a0 97),\r\n('Veena',\u00a0\u00a0 40,\u00a0\u00a0\u00a0\u00a0 'Texas',\u00a0\u00a0 np.NaN),\r\n('Lucifer',\u00a0\u00a0 np.NaN, 'Texas',\u00a0\u00a0 130),\r\n('Pablo', 30,\u00a0\u00a0\u00a0\u00a0 'New York',\u00a0 155),\r\n('Lionel',\u00a0\u00a0 45,\u00a0\u00a0\u00a0\u00a0 'Colombia', 121) ]\r\ndfObj = pd.DataFrame(students, columns=['Name','Age','City','Score'])\r\n#Sum of all the scores from New York city\r\ntotalSum = dfObj.loc[dfObj['City'] == 'New York', 'Score'].sum()\r\nprint(totalSum)<\/pre>\n
Output :\r\n252.0<\/pre>\n","protected":false},"excerpt":{"rendered":"

How to get the sum of column values in a dataframe in Python ? In this article, we will discuss about how to get the sum To find the sum of values in a dataframe. So, let’s start exploring the topic. Select the column by name and get the sum of all values in that …<\/p>\n

Pandas: Get sum of column values in a Dataframe<\/span> Read More »<\/a><\/p>\n","protected":false},"author":9,"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":"\nPandas: Get sum of column values in a Dataframe - 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\/pandas-get-sum-of-column-values-in-a-dataframe\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pandas: Get sum of column values in a Dataframe - Python Programs\" \/>\n<meta property=\"og:description\" content=\"How to get the sum of column values in a dataframe in Python ? In this article, we will discuss about how to get the sum To find the sum of values in a dataframe. So, let’s start exploring the topic. Select the column by name and get the sum of all values in that … Pandas: Get sum of column values in a Dataframe Read More »\" \/>\n<meta property=\"og:url\" content=\"https:\/\/python-programs.com\/pandas-get-sum-of-column-values-in-a-dataframe\/\" \/>\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=\"2021-05-01T09:27:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-22T13:19:07+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=\"Satyabrata Jena\" \/>\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\/pandas-get-sum-of-column-values-in-a-dataframe\/#webpage\",\"url\":\"https:\/\/python-programs.com\/pandas-get-sum-of-column-values-in-a-dataframe\/\",\"name\":\"Pandas: Get sum of column values in a Dataframe - Python Programs\",\"isPartOf\":{\"@id\":\"https:\/\/python-programs.com\/#website\"},\"datePublished\":\"2021-05-01T09:27:45+00:00\",\"dateModified\":\"2021-11-22T13:19:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/python-programs.com\/pandas-get-sum-of-column-values-in-a-dataframe\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/python-programs.com\/pandas-get-sum-of-column-values-in-a-dataframe\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/python-programs.com\/pandas-get-sum-of-column-values-in-a-dataframe\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/python-programs.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Pandas: Get sum of column values in a Dataframe\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/python-programs.com\/pandas-get-sum-of-column-values-in-a-dataframe\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/python-programs.com\/pandas-get-sum-of-column-values-in-a-dataframe\/#webpage\"},\"author\":{\"@id\":\"https:\/\/python-programs.com\/#\/schema\/person\/0f6d731bda7051ce3586f71299f391cd\"},\"headline\":\"Pandas: Get sum of column values in a Dataframe\",\"datePublished\":\"2021-05-01T09:27:45+00:00\",\"dateModified\":\"2021-11-22T13:19:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/python-programs.com\/pandas-get-sum-of-column-values-in-a-dataframe\/#webpage\"},\"wordCount\":321,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/python-programs.com\/#organization\"},\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/python-programs.com\/pandas-get-sum-of-column-values-in-a-dataframe\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/python-programs.com\/#\/schema\/person\/0f6d731bda7051ce3586f71299f391cd\",\"name\":\"Satyabrata Jena\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/python-programs.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c1bf8033ec357d085f41815bee1625cc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c1bf8033ec357d085f41815bee1625cc?s=96&d=mm&r=g\",\"caption\":\"Satyabrata Jena\"},\"url\":\"https:\/\/python-programs.com\/author\/satyabrata\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pandas: Get sum of column values in a Dataframe - 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\/pandas-get-sum-of-column-values-in-a-dataframe\/","og_locale":"en_US","og_type":"article","og_title":"Pandas: Get sum of column values in a Dataframe - Python Programs","og_description":"How to get the sum of column values in a dataframe in Python ? In this article, we will discuss about how to get the sum To find the sum of values in a dataframe. So, let’s start exploring the topic. Select the column by name and get the sum of all values in that … Pandas: Get sum of column values in a Dataframe Read More »","og_url":"https:\/\/python-programs.com\/pandas-get-sum-of-column-values-in-a-dataframe\/","og_site_name":"Python Programs","article_publisher":"https:\/\/www.facebook.com\/btechgeeks","article_published_time":"2021-05-01T09:27:45+00:00","article_modified_time":"2021-11-22T13:19:07+00:00","twitter_card":"summary_large_image","twitter_creator":"@btech_geeks","twitter_site":"@btech_geeks","twitter_misc":{"Written by":"Satyabrata Jena","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\/pandas-get-sum-of-column-values-in-a-dataframe\/#webpage","url":"https:\/\/python-programs.com\/pandas-get-sum-of-column-values-in-a-dataframe\/","name":"Pandas: Get sum of column values in a Dataframe - Python Programs","isPartOf":{"@id":"https:\/\/python-programs.com\/#website"},"datePublished":"2021-05-01T09:27:45+00:00","dateModified":"2021-11-22T13:19:07+00:00","breadcrumb":{"@id":"https:\/\/python-programs.com\/pandas-get-sum-of-column-values-in-a-dataframe\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/python-programs.com\/pandas-get-sum-of-column-values-in-a-dataframe\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/python-programs.com\/pandas-get-sum-of-column-values-in-a-dataframe\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/python-programs.com\/"},{"@type":"ListItem","position":2,"name":"Pandas: Get sum of column values in a Dataframe"}]},{"@type":"Article","@id":"https:\/\/python-programs.com\/pandas-get-sum-of-column-values-in-a-dataframe\/#article","isPartOf":{"@id":"https:\/\/python-programs.com\/pandas-get-sum-of-column-values-in-a-dataframe\/#webpage"},"author":{"@id":"https:\/\/python-programs.com\/#\/schema\/person\/0f6d731bda7051ce3586f71299f391cd"},"headline":"Pandas: Get sum of column values in a Dataframe","datePublished":"2021-05-01T09:27:45+00:00","dateModified":"2021-11-22T13:19:07+00:00","mainEntityOfPage":{"@id":"https:\/\/python-programs.com\/pandas-get-sum-of-column-values-in-a-dataframe\/#webpage"},"wordCount":321,"commentCount":0,"publisher":{"@id":"https:\/\/python-programs.com\/#organization"},"articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/python-programs.com\/pandas-get-sum-of-column-values-in-a-dataframe\/#respond"]}]},{"@type":"Person","@id":"https:\/\/python-programs.com\/#\/schema\/person\/0f6d731bda7051ce3586f71299f391cd","name":"Satyabrata Jena","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/python-programs.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c1bf8033ec357d085f41815bee1625cc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c1bf8033ec357d085f41815bee1625cc?s=96&d=mm&r=g","caption":"Satyabrata Jena"},"url":"https:\/\/python-programs.com\/author\/satyabrata\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/posts\/4717"}],"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\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/comments?post=4717"}],"version-history":[{"count":2,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/posts\/4717\/revisions"}],"predecessor-version":[{"id":4935,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/posts\/4717\/revisions\/4935"}],"wp:attachment":[{"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/media?parent=4717"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/categories?post=4717"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/tags?post=4717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}