{"id":19284,"date":"2024-07-19T06:33:38","date_gmt":"2024-07-19T06:33:38","guid":{"rendered":"https:\/\/www.prepbytes.com\/blog\/?p=19284"},"modified":"2024-07-19T06:33:39","modified_gmt":"2024-07-19T06:33:39","slug":"heatmaps-in-matplotlib","status":"publish","type":"post","link":"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/","title":{"rendered":"Heatmaps in Matplotlib"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721370806577-Heatmap%20in%20Matplotlib.png\" alt=\"\" \/><\/p>\n<p>Heatmaps are a powerful data visualization tool that graphically represents data using color-coded matrices. They are particularly useful for visualizing the concentration and distribution of data points, making it easy to identify patterns, correlations, and outliers. In Python, the matplotlib library provides robust functionality for creating and customizing heatmaps. This article delves into the basics of creating heatmaps in matplotlib, including practical examples and customization techniques.<\/p>\n<h2>What is a Heatmap?<\/h2>\n<p>A heatmap is a two-dimensional graphical representation of data where individual values are represented by colors. The colors in a heatmap can range from a single hue to a gradient of hues, allowing for the visualization of data intensities. Heatmaps are commonly used in various fields, including biology, finance, and social sciences, to represent complex data sets in a comprehensible and visually appealing manner.<\/p>\n<h3>Creating Heatmaps with Matplotlib<\/h3>\n<p>To create a heatmap in matplotlib, you typically use the imshow function, which displays data as an image. Here&#8217;s a step-by-step guide to creating a simple heatmap:<\/p>\n<p><strong>Step 1: Import the Required Libraries<\/strong><br \/>\nFirst, ensure you have matplotlib installed. You can install it using pip if you haven&#8217;t already:<\/p>\n<pre><code>pip install matplotlib<\/code><\/pre>\n<p>Then, import the necessary libraries:<\/p>\n<pre><code>import matplotlib.pyplot as plt\nimport numpy as np<\/code><\/pre>\n<p><strong>Step 2: Prepare Your Data<\/strong><br \/>\nCreate a 2D array (matrix) of data. For demonstration purposes, let&#8217;s generate a random matrix using NumPy:<\/p>\n<pre><code>data = np.random.rand(10, 10)  # 10x10 matrix of random numbers<\/code><\/pre>\n<p><strong>Step 3: Create the Heatmap<\/strong><br \/>\nUse the imshow function to create the heatmap:<\/p>\n<pre><code>plt.imshow(data, cmap='hot', interpolation='nearest')\nplt.colorbar()  # Add a colorbar to provide a scale\nplt.show()<\/code><\/pre>\n<p>In this example, the cmap parameter specifies the colormap (&#8216;hot&#8217;), and the interpolation parameter determines how the values are interpolated (&#8216;nearest&#8217; means no interpolation). The colorbar function adds a color scale to the side of the heatmap.<\/p>\n<p><strong>Customizing Heatmaps<\/strong><br \/>\nmatplotlib offers various options for customizing heatmaps to suit your needs. Here are a few customization techniques:<\/p>\n<p><strong>1. Changing the Colormap<\/strong><br \/>\nYou can change the colormap to better represent your data:<\/p>\n<pre><code>plt.imshow(data, cmap='viridis', interpolation='nearest')\nplt.colorbar()\nplt.show()<\/code><\/pre>\n<p>Popular colormaps include &#8216;viridis&#8217;, &#8216;plasma&#8217;, &#8216;inferno&#8217;, and &#8216;coolwarm&#8217;. You can find a complete list of colormaps in the matplotlib documentation.<\/p>\n<p><strong>2. Adding Labels and Titles<\/strong><br \/>\nEnhance the readability of your heatmap by adding labels and titles:<\/p>\n<pre><code>plt.imshow(data, cmap='coolwarm', interpolation='nearest')\nplt.colorbar()\n\n# Add labels\nplt.title('Sample Heatmap')\nplt.xlabel('X-axis Label')\nplt.ylabel('Y-axis Label')\n\nplt.show()<\/code><\/pre>\n<p><strong>3. Annotating Cells<\/strong><br \/>\nAnnotate each cell with its corresponding value using the text function:<\/p>\n<pre><code>fig, ax = plt.subplots()\ncax = ax.imshow(data, cmap='coolwarm', interpolation='nearest')\nfig.colorbar(cax)\n\n# Annotate cells\nfor i in range(data.shape[0]):\n    for j in range(data.shape[1]):\n        ax.text(j, i, f'{data[i, j]:.2f}', ha='center', va='center', color='black')\n\nplt.show()<\/code><\/pre>\n<p><strong>4. Adjusting the Aspect Ratio<\/strong><br \/>\nControl the aspect ratio of the heatmap to better fit your data:<\/p>\n<pre><code>plt.imshow(data, cmap='magma', interpolation='nearest', aspect='auto')\nplt.colorbar()\nplt.show()<\/code><\/pre>\n<p><strong>Practical Example: Correlation Matrix<\/strong><br \/>\nA common use case for heatmaps is visualizing correlation matrices. Here&#8217;s an example using the popular seaborn library, which is built on top of matplotlib and offers additional features for creating heatmaps:<\/p>\n<pre><code>import seaborn as sns\nimport pandas as pd\n\n# Generate a sample DataFrame\ndata = pd.DataFrame(np.random.randn(100, 5), columns=['A', 'B', 'C', 'D', 'E'])\n\n# Compute the correlation matrix\ncorr_matrix = data.corr()\n\n# Create the heatmap\nsns.heatmap(corr_matrix, annot=True, cmap='coolwarm', linewidths=0.5)\nplt.title('Correlation Matrix Heatmap')\nplt.show()<\/code><\/pre>\n<p>In this example, we create a sample DataFrame, compute its correlation matrix, and then visualize the matrix using seaborn&#8217;s heatmap function. The annot parameter adds the correlation values to each cell, and linewidths adds lines between cells for better readability.<\/p>\n<p><strong>Conclusion<\/strong><br \/>\nHeatmaps are an excellent tool for visualizing complex data sets, allowing for the easy identification of patterns and correlations. With matplotlib, creating and customizing heatmaps is straightforward, making it a valuable skill for data analysts and scientists. By mastering heatmap creation and customization, you can enhance your data visualization capabilities and gain deeper insights from your data.<\/p>\n<h2>Frequently Asked Questions (FAQs) about Heatmaps in Matplotlib<\/h2>\n<p>Here are some FAQs related to Heatmaps in Matplotlib:<\/p>\n<p><strong>1. What is a heatmap?<br \/>\nAnswer:<\/strong> A heatmap is a data visualization tool that displays data in a matrix format, where individual values are represented by colors. Heatmaps are used to quickly identify patterns, correlations, and anomalies within data sets.<\/p>\n<p><strong>2. How do I create a basic heatmap in Matplotlib?<br \/>\nAnswer:<\/strong> To create a basic heatmap in Matplotlib, you can use the imshow function. Here is a simple example:<\/p>\n<pre><code>import matplotlib.pyplot as plt\nimport numpy as np\n\ndata = np.random.rand(10, 10)  # Create a 10x10 matrix of random numbers\nplt.imshow(data, cmap='hot', interpolation='nearest')\nplt.colorbar()  # Add a colorbar to the heatmap\nplt.show()<\/code><\/pre>\n<p><strong>3. What are some commonly used colormaps for heatmaps?<br \/>\nAnswer:<\/strong> Some commonly used colormaps in Matplotlib include:<\/p>\n<ul>\n<li>viridis<\/li>\n<li>plasma<\/li>\n<li>inferno<\/li>\n<li>magma<\/li>\n<li>coolwarm<\/li>\n<li>hot<\/li>\n<li>Blues You can find a complete list of colormaps in the Matplotlib colormap documentation.<\/li>\n<\/ul>\n<p><strong>4. How can I add labels and titles to my heatmap?<br \/>\nAnswer:<\/strong> You can add labels and titles to your heatmap using the title, xlabel, and ylabel functions. Here\u2019s an example:<\/p>\n<pre><code>plt.imshow(data, cmap='coolwarm', interpolation='nearest')\nplt.colorbar()\nplt.title('Sample Heatmap')\nplt.xlabel('X-axis Label')\nplt.ylabel('Y-axis Label')\nplt.show()<\/code><\/pre>\n<p><strong>5. How do I annotate cells in a heatmap with their values?<\/strong><br \/>\nAnswer: You can annotate each cell with its corresponding value using the text function. Here is an example:<\/p>\n<pre><code>fig, ax = plt.subplots()\ncax = ax.imshow(data, cmap='coolwarm', interpolation='nearest')\nfig.colorbar(cax)\n\n# Annotate cells\nfor i in range(data.shape[0]):\n    for j in range(data.shape[1]):\n        ax.text(j, i, f'{data[i, j]:.2f}', ha='center', va='center', color='black')\n\nplt.show()<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Heatmaps are a powerful data visualization tool that graphically represents data using color-coded matrices. They are particularly useful for visualizing the concentration and distribution of data points, making it easy to identify patterns, correlations, and outliers. In Python, the matplotlib library provides robust functionality for creating and customizing heatmaps. This article delves into the basics [&hellip;]<\/p>\n","protected":false},"author":52,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[236],"tags":[],"class_list":["post-19284","post","type-post","status-publish","format-standard","hentry","category-data-science"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Heatmaps in Matplotlib<\/title>\n<meta name=\"description\" content=\"A heatmap is a two-dimensional graphical representation of data where individual values are represented by colors.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Heatmaps in Matplotlib\" \/>\n<meta property=\"og:description\" content=\"A heatmap is a two-dimensional graphical representation of data where individual values are represented by colors.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/\" \/>\n<meta property=\"og:site_name\" content=\"PrepBytes Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prepbytes0211\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-19T06:33:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-19T06:33:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721370806577-Heatmap%20in%20Matplotlib.png\" \/>\n<meta name=\"author\" content=\"Prepbytes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prepbytes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/\"},\"author\":{\"name\":\"Prepbytes\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\"},\"headline\":\"Heatmaps in Matplotlib\",\"datePublished\":\"2024-07-19T06:33:38+00:00\",\"dateModified\":\"2024-07-19T06:33:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/\"},\"wordCount\":679,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721370806577-Heatmap%20in%20Matplotlib.png\",\"articleSection\":[\"Data Science\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/\",\"url\":\"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/\",\"name\":\"Heatmaps in Matplotlib\",\"isPartOf\":{\"@id\":\"http:\/\/43.205.93.38\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721370806577-Heatmap%20in%20Matplotlib.png\",\"datePublished\":\"2024-07-19T06:33:38+00:00\",\"dateModified\":\"2024-07-19T06:33:39+00:00\",\"description\":\"A heatmap is a two-dimensional graphical representation of data where individual values are represented by colors.\",\"breadcrumb\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/#primaryimage\",\"url\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721370806577-Heatmap%20in%20Matplotlib.png\",\"contentUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721370806577-Heatmap%20in%20Matplotlib.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/43.205.93.38\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Data Science\",\"item\":\"https:\/\/prepbytes.com\/blog\/category\/data-science\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Heatmaps in Matplotlib\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/43.205.93.38\/#website\",\"url\":\"http:\/\/43.205.93.38\/\",\"name\":\"PrepBytes Blog\",\"description\":\"ONE-STOP RESOURCE FOR EVERYTHING RELATED TO CODING\",\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/43.205.93.38\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/43.205.93.38\/#organization\",\"name\":\"Prepbytes\",\"url\":\"http:\/\/43.205.93.38\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp\",\"contentUrl\":\"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp\",\"width\":160,\"height\":160,\"caption\":\"Prepbytes\"},\"image\":{\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/prepbytes0211\/\",\"https:\/\/www.instagram.com\/prepbytes\/\",\"https:\/\/www.linkedin.com\/company\/prepbytes\/\",\"https:\/\/www.youtube.com\/channel\/UC0xGnHDrjUM1pDEK2Ka5imA\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\",\"name\":\"Prepbytes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g\",\"caption\":\"Prepbytes\"},\"url\":\"https:\/\/prepbytes.com\/blog\/author\/gourav-jaincollegedekho-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Heatmaps in Matplotlib","description":"A heatmap is a two-dimensional graphical representation of data where individual values are represented by colors.","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:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/","og_locale":"en_US","og_type":"article","og_title":"Heatmaps in Matplotlib","og_description":"A heatmap is a two-dimensional graphical representation of data where individual values are represented by colors.","og_url":"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/","og_site_name":"PrepBytes Blog","article_publisher":"https:\/\/www.facebook.com\/prepbytes0211\/","article_published_time":"2024-07-19T06:33:38+00:00","article_modified_time":"2024-07-19T06:33:39+00:00","og_image":[{"url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721370806577-Heatmap%20in%20Matplotlib.png","type":"","width":"","height":""}],"author":"Prepbytes","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Prepbytes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/#article","isPartOf":{"@id":"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/"},"author":{"name":"Prepbytes","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e"},"headline":"Heatmaps in Matplotlib","datePublished":"2024-07-19T06:33:38+00:00","dateModified":"2024-07-19T06:33:39+00:00","mainEntityOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/"},"wordCount":679,"commentCount":0,"publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721370806577-Heatmap%20in%20Matplotlib.png","articleSection":["Data Science"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/","url":"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/","name":"Heatmaps in Matplotlib","isPartOf":{"@id":"http:\/\/43.205.93.38\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/#primaryimage"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721370806577-Heatmap%20in%20Matplotlib.png","datePublished":"2024-07-19T06:33:38+00:00","dateModified":"2024-07-19T06:33:39+00:00","description":"A heatmap is a two-dimensional graphical representation of data where individual values are represented by colors.","breadcrumb":{"@id":"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/#primaryimage","url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721370806577-Heatmap%20in%20Matplotlib.png","contentUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1721370806577-Heatmap%20in%20Matplotlib.png"},{"@type":"BreadcrumbList","@id":"https:\/\/prepbytes.com\/blog\/heatmaps-in-matplotlib\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/43.205.93.38\/"},{"@type":"ListItem","position":2,"name":"Data Science","item":"https:\/\/prepbytes.com\/blog\/category\/data-science\/"},{"@type":"ListItem","position":3,"name":"Heatmaps in Matplotlib"}]},{"@type":"WebSite","@id":"http:\/\/43.205.93.38\/#website","url":"http:\/\/43.205.93.38\/","name":"PrepBytes Blog","description":"ONE-STOP RESOURCE FOR EVERYTHING RELATED TO CODING","publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/43.205.93.38\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/43.205.93.38\/#organization","name":"Prepbytes","url":"http:\/\/43.205.93.38\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/","url":"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp","contentUrl":"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp","width":160,"height":160,"caption":"Prepbytes"},"image":{"@id":"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/prepbytes0211\/","https:\/\/www.instagram.com\/prepbytes\/","https:\/\/www.linkedin.com\/company\/prepbytes\/","https:\/\/www.youtube.com\/channel\/UC0xGnHDrjUM1pDEK2Ka5imA"]},{"@type":"Person","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e","name":"Prepbytes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g","caption":"Prepbytes"},"url":"https:\/\/prepbytes.com\/blog\/author\/gourav-jaincollegedekho-com\/"}]}},"_links":{"self":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/19284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/comments?post=19284"}],"version-history":[{"count":1,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/19284\/revisions"}],"predecessor-version":[{"id":19285,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/19284\/revisions\/19285"}],"wp:attachment":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/media?parent=19284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/categories?post=19284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/tags?post=19284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}