{"id":89256,"date":"2024-05-27T18:00:59","date_gmt":"2024-05-27T12:30:59","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=89256"},"modified":"2024-05-27T18:20:59","modified_gmt":"2024-05-27T12:50:59","slug":"numpy-universal-functions","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/numpy-universal-functions\/","title":{"rendered":"NumPy Universal Functions with Examples"},"content":{"rendered":"<p>Python&#8217;s NumPy library is essential for performing numerical calculations. Among its many capabilities, NumPy offers a potent utility known as &#8220;Universal Functions,&#8221; or &#8220;ufuncs.&#8221; NumPy is a flexible and high-performance library thanks to Ufuncs, which are essential for effectively carrying out element-wise operations on arrays.<\/p>\n<p>We&#8217;ll discuss what ufuncs are, what they perform, and their parameters in this blog post. We&#8217;ll also include a table of frequently used ufuncs, along with in-depth descriptions, sample code, and expected outcomes.<\/p>\n<h2>What Are Ufuncs in NumPy?<\/h2>\n<p>A fundamental component of NumPy that enables element-wise operations on arrays is known as ufuncs. These operations are performed on array items by using a vectorized form of the stated operation. This results in efficient and clear code because the identical operation is carried out on every element of the array without the need for explicit loops.<\/p>\n<h3>What Do Ufuncs (Universal Functions) Do?<\/h3>\n<p>Numerous mathematical, logical, and bitwise operations are carried out on NumPy arrays by Ufuncs. Because they use highly optimised C and Fortran implementations to power calculations, they are very helpful when working with enormous datasets.<\/p>\n<p><strong>Ufunc Parameters: <\/strong>Ufuncs typically take one or more NumPy arrays as input and return a new array as output. The common parameters for ufuncs include:<\/p>\n<p><strong>x and y<\/strong> <strong>(optional):<\/strong> Input arrays.<br \/>\n<strong>out<\/strong> <strong>(optional):<\/strong> Specifies where to store the result. It allows for in-place operations.<br \/>\n<strong>where<\/strong> <strong>(optional):<\/strong> A boolean condition that controls which elements are operated on.<\/p>\n<h3>Ufunc\u2019s other optional keywords:<\/h3>\n<p><strong>&#8216;casting&#8217; (new in v1.6):<\/strong> Determines the casting policy (&#8216;no&#8217;, &#8216;equiv&#8217;, &#8216;safe&#8217;, &#8216;same_kind&#8217;, or &#8216;unsafe&#8217;).<\/p>\n<p><strong>&#8216;order&#8217; (new in v1.6):<\/strong> Specifies the memory layout of the output (&#8216;C&#8217;, &#8216;F&#8217;, &#8216;A&#8217;, or &#8216;K&#8217;).<\/p>\n<p><strong>&#8216;dtype&#8217; (new in v1.6):<\/strong> Overrides the data type of calculation and output arrays.<\/p>\n<p><strong>&#8216;subok&#8217; (new in v1.6):<\/strong> If false, ensure the output is a strict array, not a subtype.<\/p>\n<p><strong>&#8216;signature&#8217;:<\/strong> Provides a specific data type signature for ufunc input and output types.<\/p>\n<p><strong>&#8216;extobj&#8217;:<\/strong> Specifies ufunc buffer size, error mode integer, and error callback function. Useful for optimization in certain cases.<\/p>\n<h3>Various types of Ufuncs:<\/h3>\n<p>NumPy&#8217;s Universal Functions (ufuncs) cover a wide range of operations, making them a versatile tool for performing element-wise operations on arrays. These ufuncs can be categorized into several types based on their primary functionality:<\/p>\n<h4>Arithmetic Ufuncs:<\/h4>\n<p><strong>1. np.add:<\/strong> Element-wise addition.<br \/>\n<strong>2. np.subtract:<\/strong> Element-wise subtraction.<br \/>\n<strong>3. np.multiply:<\/strong> Element-wise multiplication.<br \/>\n<strong>4. np.divide:<\/strong> Element-wise division.<br \/>\n<strong>5. np.floor_divide:<\/strong> Element-wise floor division.<br \/>\n<strong>6. np.power:<\/strong> Element-wise exponentiation.<br \/>\n<strong>7. np.mod:<\/strong> Element-wise modulo operation.<br \/>\n<strong>8. np.abs:<\/strong> Element-wise absolute value.<br \/>\n<strong>9. np.negative:<\/strong> Element-wise negation.<\/p>\n<h4>Mathematical Ufuncs:<\/h4>\n<p><strong>1. np.sqrt:<\/strong> Square root of each element.<br \/>\n<strong>2. np.exp:<\/strong> Exponential function (e^x) for each element.<br \/>\n<strong>3. np.log, np.log10, np.log2:<\/strong> Natural logarithm, base-10 logarithm, and base-2 logarithm, respectively.<br \/>\n<strong>4. np.sin, np.cos, np.tan:<\/strong> Trigonometric functions.<br \/>\n<strong>5. np.arcsin, np.arccos, np.arctan:<\/strong> Inverse trigonometric functions.<br \/>\n<strong>6. np.sinh, np.cosh, np.tanh:<\/strong> Hyperbolic trigonometric functions.<br \/>\n<strong>7. np.arcsinh, np.arccosh, np.arctanh:<\/strong> Inverse hyperbolic trigonometric functions.<\/p>\n<h4>Comparative Ufuncs:<\/h4>\n<p><strong>1. np.greater, np.greater_equal:<\/strong> Element-wise comparison for greater than and greater than or equal to.<br \/>\n<strong>2. np.less, np.less_equal:<\/strong> Element-wise comparison for less than and less than or equal to.<br \/>\n<strong>3. np.equal, np.not_equal:<\/strong> Element-wise comparison for equality and inequality.<\/p>\n<h4>Logical Ufuncs:<\/h4>\n<p><strong>1. np.logical_and, np.logical_or, np.logical_xor:<\/strong> Element-wise logical operations.<br \/>\n<strong>2. np.logical_not:<\/strong> Element-wise logical NOT operation.<\/p>\n<h4>Bitwise Ufuncs:<\/h4>\n<p><strong>1. np.bitwise_and, np.bitwise_or, np.bitwise_xor:<\/strong> Element-wise bitwise operations.<br \/>\n<strong>2. np.invert:<\/strong> Element-wise bitwise NOT operation (bitwise inversion).<\/p>\n<h4>Rounding and Truncation Ufuncs:<\/h4>\n<p><strong>1. np.round:<\/strong> Round elements to the nearest integer or specified number of decimals.<br \/>\n<strong>2. np.floor:<\/strong> Round elements down to the nearest integer.<br \/>\n<strong>3. np.ceil:<\/strong> Round elements up to the nearest integer.<br \/>\n<strong>4. np.trunc:<\/strong> Truncate decimal values, keeping only the integer part.<\/p>\n<h4>Statistical Ufuncs:<\/h4>\n<p><strong>1. np.mean, np.median:<\/strong> Compute the mean and median of array elements.<br \/>\n<strong>2. np.min, np.max:<\/strong> Finds the minimum and maximum values present in an array.<br \/>\n<strong>3. np.std, np.var:<\/strong> Calculate the standard deviation and variance of elements.<\/p>\n<h4>Special Ufuncs:<\/h4>\n<p><strong>1. np.isnan<\/strong>: Check for NaN (Not-a-Number) values in an array.<br \/>\n<strong>2. np.isinf:<\/strong> Check for infinity values in an array.<br \/>\n<strong>3. np.isfinite:<\/strong> Check for finite values in an array.<br \/>\n<strong>4. np.unique:<\/strong> Find unique elements in an array.<\/p>\n<h4>Trigonometric and Hyperbolic Ufuncs:<\/h4>\n<p><strong>1. np.deg2rad, np.rad2deg:<\/strong> Convert between degrees and radians.<br \/>\n<strong>2. np.hypot:<\/strong> Calculate the hypotenuse of right triangles.<\/p>\n<h3>Common Ufuncs<\/h3>\n<p><strong>Here&#8217;s a table of some frequently used ufuncs along with their descriptions:<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Ufunc Name<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<td><strong>Example Code<\/strong><\/td>\n<td><strong>Expected Output<\/strong><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">np.add<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Element-wise addition of two arrays.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">np.add([1, 2, 3], [4, 5, 6])<\/span><\/td>\n<td><span style=\"font-weight: 400;\">[5, 7, 9]<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">np.subtract<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Element-wise subtraction of two arrays.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">np.subtract([4, 5, 6], [1, 2, 3])<\/span><\/td>\n<td><span style=\"font-weight: 400;\">[3, 3, 3]<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">np.multiply<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Element-wise multiplication of two arrays.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">np.multiply([1, 2, 3], [4, 5, 6])<\/span><\/td>\n<td><span style=\"font-weight: 400;\">[4, 10, 18]<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">np.divide<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Element-wise division of two arrays.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">np.divide([4, 5, 6], [1, 2, 3])<\/span><\/td>\n<td><span style=\"font-weight: 400;\">[4.0, 2.5, 2.0]<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">np.sqrt<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Provides the square root of each element in an array.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">np.sqrt([4, 9, 16])<\/span><\/td>\n<td><span style=\"font-weight: 400;\">[2.0, 3.0, 4.0]<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">np.exp<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Exponential function (e^x) for each element.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">np.exp([1, 2, 3])<\/span><\/td>\n<td><span style=\"font-weight: 400;\">[2.71828183, 7.3890561, 20.08553692]<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">np.sin<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Sine of each element in an array.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">np.sin([0, np.pi\/2, np.pi])<\/span><\/td>\n<td><span style=\"font-weight: 400;\">[0.0, 1.0, 0.0]<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">np.cos<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Cosine of each element in an array.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">np.cos([0, np.pi\/2, np.pi])<\/span><\/td>\n<td><span style=\"font-weight: 400;\">[1.0, 0.0, -1.0]<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">np.logical_and<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Element-wise logical AND between two arrays.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">np.logical_and([True, True, False], [True, False, False])<\/span><\/td>\n<td><span style=\"font-weight: 400;\">[True, False, False]<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Example Code and Outputs<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import numpy as np\r\n\r\n# Example arrays\r\narr1 = np.array([1, 2, 3])\r\narr2 = np.array([4, 5, 6])\r\n\r\n# Element-wise addition\r\nresult_add = np.add(arr1, arr2)\r\nprint(\"Element-wise addition:\", result_add)\r\n\r\n# Element-wise multiplication\r\nresult_multiply = np.multiply(arr1, arr2)\r\nprint(\"Element-wise multiplication:\", result_multiply)\r\n\r\n# Square root\r\nresult_sqrt = np.sqrt(arr1)\r\nprint(\"Square root:\", result_sqrt)\r\n\r\n# Element-wise logical AND\r\nresult_logical_and = np.logical_and([True, True, False], [True, False, False])\r\nprint(\"Element-wise logical AND:\", result_logical_and)<\/pre>\n<p><strong>Expected Outputs:<\/strong><\/p>\n<p>Element-wise addition: [5 7 9]<br \/>\nElement-wise multiplication: [ 4 10 18]<br \/>\nSquare root: [1. 1.41421356 1.73205081]<br \/>\nElement-wise logical AND: [ True False False]<\/p>\n<h3>Conclusion:<\/h3>\n<p>These are only a few of the NumPy ufuncs that are often used. The efficient design of Ufuncs makes it possible to execute vectorized operations on arrays, substantially simplifying your code and enhancing speed when handling huge datasets. Effective data manipulation and scientific computing in Python require an understanding of the various ufuncs and how to apply them.<\/p>\n<p>Hope this guide gives you an insight on how to use them in your code. Happy Coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python&#8217;s NumPy library is essential for performing numerical calculations. Among its many capabilities, NumPy offers a potent utility known as &#8220;Universal Functions,&#8221; or &#8220;ufuncs.&#8221; NumPy is a flexible and high-performance library thanks to Ufuncs,&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":447244,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[385],"tags":[383,384,415,429,5647,5648,5525],"class_list":["post-89256","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-numpy-tutorials","tag-learn-numpy","tag-numpy-tutorial","tag-numpy-tutorial-for-begginers","tag-numpy-universal-functions","tag-numpy-universal-functions-with-examples","tag-universal-functions","tag-universal-functions-in-numpy"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>NumPy Universal Functions with Examples - TechVidvan<\/title>\n<meta name=\"description\" content=\"A fundamental component of NumPy that enables element-wise operations on arrays is known as ufuncs (Universal Functions).\" \/>\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-universal-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"NumPy Universal Functions with Examples - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"A fundamental component of NumPy that enables element-wise operations on arrays is known as ufuncs (Universal Functions).\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/numpy-universal-functions\/\" \/>\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-27T12:30:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-27T12:50:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/11\/numpy-universal-functions.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 Universal Functions with Examples - TechVidvan","description":"A fundamental component of NumPy that enables element-wise operations on arrays is known as ufuncs (Universal Functions).","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-universal-functions\/","og_locale":"en_US","og_type":"article","og_title":"NumPy Universal Functions with Examples - TechVidvan","og_description":"A fundamental component of NumPy that enables element-wise operations on arrays is known as ufuncs (Universal Functions).","og_url":"https:\/\/techvidvan.com\/tutorials\/numpy-universal-functions\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2024-05-27T12:30:59+00:00","article_modified_time":"2024-05-27T12:50:59+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/11\/numpy-universal-functions.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-universal-functions\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/numpy-universal-functions\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/dde481bb412350cde1ed6e389bc0deaf"},"headline":"NumPy Universal Functions with Examples","datePublished":"2024-05-27T12:30:59+00:00","dateModified":"2024-05-27T12:50:59+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/numpy-universal-functions\/"},"wordCount":953,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/numpy-universal-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/11\/numpy-universal-functions.webp","keywords":["learn numpy","numPy tutorial","numpy tutorial for begginers","numpy universal functions","numpy universal functions with examples","universal functions","universal functions in numpy"],"articleSection":["NumPy Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/numpy-universal-functions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/numpy-universal-functions\/","url":"https:\/\/techvidvan.com\/tutorials\/numpy-universal-functions\/","name":"NumPy Universal Functions with Examples - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/numpy-universal-functions\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/numpy-universal-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/11\/numpy-universal-functions.webp","datePublished":"2024-05-27T12:30:59+00:00","dateModified":"2024-05-27T12:50:59+00:00","description":"A fundamental component of NumPy that enables element-wise operations on arrays is known as ufuncs (Universal Functions).","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/numpy-universal-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/numpy-universal-functions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/numpy-universal-functions\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/11\/numpy-universal-functions.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/11\/numpy-universal-functions.webp","width":1200,"height":628,"caption":"numpy universal functions"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/numpy-universal-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"NumPy Universal Functions with Examples"}]},{"@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\/89256","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=89256"}],"version-history":[{"count":6,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/89256\/revisions"}],"predecessor-version":[{"id":447506,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/89256\/revisions\/447506"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/447244"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=89256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=89256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=89256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}