

{"id":19143,"date":"2018-06-30T04:04:23","date_gmt":"2018-06-30T04:04:23","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=19143"},"modified":"2021-05-12T11:09:08","modified_gmt":"2021-05-12T05:39:08","slug":"pyspark-storagelevel","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/pyspark-storagelevel\/","title":{"rendered":"Learn PySpark StorageLevel With Example"},"content":{"rendered":"<p>Today, in this<strong> PySpark<\/strong> article, we will learn the whole concept of\u00a0PySpark StorageLevel in depth. Basically, while it comes to store<strong> RDD<\/strong>,\u00a0StorageLevel in Spark decides how\u00a0it should be stored.<\/p>\n<p>So, let&#8217;s learn about Storage levels using PySpark. Also, we will learn an\u00a0example of StorageLevel\u00a0in PySpark to understand it well.<\/p>\n<p>So, let&#8217;s start PySpark StorageLevel.<\/p>\n<h2><span style=\"font-weight: 400\">What is PySpark StorageLevel?<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Well, how RDD should be stored in Apache <strong>Spark<\/strong>, PySpark StorageLevel decides it. Also,\u00a0whether RDD should be stored in the memory or should it be stored over the disk, or both StorageLevel decides. <\/span><\/p>\n<p><span style=\"font-weight: 400\">In addition,\u00a0whether to serialize RDD and whether to replicate RDD partitions,\u00a0it also decides this.\u00a0Moreover, for some commonly used PySpark StorageLevels, it contains static constants,\u00a0like MEMORY_ONLY.<\/span><\/p>\n<p><span style=\"font-weight: 400\">So, here is the code which has the class definition of a PySpark\u00a0StorageLevel \u2212<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">class pyspark.StorageLevel(useDisk, useMemory, useOffHeap, deserialized, replication = 1)<\/pre>\n<h2><span style=\"font-weight: 400\">Class Variables<\/span><\/h2>\n<p>Hence, there are different PySpark\u00a0 StorageLevels, to decide the storage of RDD, such as:<\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>DISK_ONLY<\/strong><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">StorageLevel(True, False, False, False, 1)<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>DISK_ONLY_2<\/strong><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">StorageLevel(True, False, False, False, 2)<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>MEMORY_AND_DISK <\/strong><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">StorageLevel(True, True, False, False, 1)<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>MEMORY_AND_DISK_2<\/strong><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">StorageLevel(True, True, False, False, 2)<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>MEMORY_AND_DISK_SER<\/strong><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">StorageLevel(True, True, False, False, 1)<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>MEMORY_AND_DISK_SER_<\/strong><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">StorageLevel(True, True, False, False, 2)<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>MEMORY_ONLY<\/strong><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">StorageLevel(False, True, False, False, 1)<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>MEMORY_ONLY_2 <\/strong><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">StorageLevel(False, True, False, False, 2)<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>MEMORY_ONLY_SER<\/strong><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">StorageLevel(False, True, False, False, 1)<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>MEMORY_ONLY_SER_2<\/strong><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">StorageLevel(False, True, False, False, 2)<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>OFF_HEAP<\/strong><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">StorageLevel(True, True, True, False, 1)<\/span><\/p>\n<h2><span style=\"font-weight: 400\">Instance Methods<\/span><\/h2>\n<pre class=\"EnlighterJSRAW\">__init__(self, useDisk, useMemory, deserialized, replication=1)<\/pre>\n<p><strong style=\"font-family: Verdana, Geneva, sans-serif\"><em>i. Source Code for Module pyspark.storagelevel<\/em><\/strong><\/p>\n<pre class=\"EnlighterJSRAW\">#\r\n  __all__ = [\"StorageLevel\"]\r\n -class StorageLevel:\r\n      \"\"\"\r\n     Basically, Flags are for controlling the storage of an RDD. Here, each StorageLevel records whether to use memory,\r\n      or to drop the RDD to disk if it falls out of memory. Also, it records whether to keep the data in memory\r\n      in a serialized format, and whether to replicate the RDD partitions on multiple nodes.\r\n      Also contains static constants for some commonly used storage levels, such as MEMORY_ONLY.\r\n      \"\"\"\r\n -    def __init__(self, useDisk, useMemory, deserialized, replication = 1):\r\n         self.useDisk = useDisk\r\n         self.useMemory = useMemory\r\n         self.deserialized = deserialized\r\n          self.replication = replication\r\n  StorageLevel.DISK_ONLY = StorageLevel(True, False, False)\r\n  StorageLevel.DISK_ONLY_2 = StorageLevel(True, False, False, 2)\r\n  StorageLevel.MEMORY_ONLY = StorageLevel(False, True, True)\r\n  StorageLevel.MEMORY_ONLY_2 = StorageLevel(False, True, True, 2)\r\n  StorageLevel.MEMORY_ONLY_SER = StorageLevel(False, True, False)\r\n  StorageLevel.MEMORY_ONLY_SER_2 = StorageLevel(False, True, False, 2)\r\n  StorageLevel.MEMORY_AND_DISK = StorageLevel(True, True, True)\r\n  StorageLevel.MEMORY_AND_DISK_2 = StorageLevel(True, True, True, 2)\r\n  StorageLevel.MEMORY_AND_DISK_SER = StorageLevel(True, True, False)\r\n  StorageLevel.MEMORY_AND_DISK_SER_2 = StorageLevel(True, True, False, 2)<\/pre>\n<h2><span style=\"font-weight: 400\">Example of PySpark StorageLevel<\/span><\/h2>\n<p><span style=\"font-weight: 400\">So, let&#8217;s\u00a0see an example of StorageLevel in <a href=\"https:\/\/spark.apache.org\/docs\/2.2.0\/api\/python\/pyspark.html\">PySpark<\/a>, MEMORY_AND_DISK_2, it says RDD partitions will have replication of 2.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">------------------------------------storagelevel.py-------------------------------------\r\nfrom pyspark import SparkContext\r\nimport pyspark\r\nsc = SparkContext (\r\n  \"local\",\r\n  \"storagelevel app\"\r\n)\r\nrdd1 = sc.parallelize([1,2])\r\nrdd1.persist( pyspark.StorageLevel.MEMORY_AND_DISK_2 )\r\nrdd1.getStorageLevel()\r\nprint(rdd1.getStorageLevel())\r\n------------------------------------storagelevel.py-------------------------------------<\/pre>\n<p><strong>Command:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\">$SPARK_HOME\/bin\/spark-submit storagelevel.py<\/pre>\n<p><strong>Output:<\/strong><br \/>\n<b>Disk Memory Serialized 2x Replicated<\/b><br \/>\nSo, this was all about PySpark StorageLevel. Hope you like our explanation.<\/p>\n<h2><span style=\"font-weight: 400\">Conclusion<\/span><\/h2>\n<p>Hence, we have seen the whole about\u00a0PySpark StorageLevel in detail. Moreover, we discussed PySpark StorageLevel example. Also, Class variable and instance methods in StorageLevel of PySpark. Still, if any doubt occurs, please ask through comment tab.<span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1907,&quot;href&quot;:&quot;https:\\\/\\\/spark.apache.org\\\/docs\\\/2.2.0\\\/api\\\/python\\\/pyspark.html&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20240225012137\\\/https:\\\/\\\/spark.apache.org\\\/docs\\\/2.2.0\\\/api\\\/python\\\/pyspark.html&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-10 07:51:41&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2025-12-15 04:57:11&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2025-12-22 11:43:04&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2025-12-26 18:11:19&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-01-05 11:09:49&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-01-09 05:44:12&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-01-16 09:45:42&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-01-22 04:33:38&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-01-27 08:28:12&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-04 09:29:23&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-08 06:16:19&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-12 05:22:25&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-17 09:58:43&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-26 13:25:55&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-02 10:11:30&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-15 13:09:03&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-26 16:19:51&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-30 06:02:05&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-06 04:25:34&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-09 04:29:30&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-14 11:07:06&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-20 09:22:03&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-23 15:39:15&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-28 13:39:27&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-05-06 02:34:19&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-05-09 06:43:41&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-05-12 10:00:18&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-05-18 08:49:56&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-05-21 09:01:24&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-05-25 06:02:31&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-05-29 06:26:56&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-06-01 16:09:07&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-06-05 17:43:39&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-06-09 05:04:51&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-06-14 15:38:25&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-06-18 06:00:51&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-06-22 07:47:41&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-06-25 09:40:28&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-06-29 04:49:08&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-07-02 06:36:37&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-07-06 06:21:19&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-07-09 06:29:32&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-07-13 05:52:46&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-07-16 06:35:33&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-07-19 16:07:01&quot;,&quot;http_code&quot;:404}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-07-19 16:07:01&quot;,&quot;http_code&quot;:404},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, in this PySpark article, we will learn the whole concept of\u00a0PySpark StorageLevel in depth. Basically, while it comes to store RDD,\u00a0StorageLevel in Spark decides how\u00a0it should be stored. So, let&#8217;s learn about Storage&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":19515,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[2533,6829,7090,10326,10327,13864,15858],"class_list":["post-19143","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pyspark","tag-class-vaiables-in-pyspark-storagelevel","tag-instance-methods-for-pyspark-storagelevel","tag-introduction-to-pyspark-storagelevel-with-example","tag-pyspark-storagelevel","tag-pyspark-storagelevel-example","tag-storagelevel-in-pyspark","tag-what-is-pyspark-storagelevel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Learn PySpark StorageLevel With Example - DataFlair<\/title>\n<meta name=\"description\" content=\"PySpark StorageLevel tutorial: PySpark StorageLevel Example, what is Pyspark StorageLevel, class variable and instance method in PySpark StorageLevel\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/pyspark-storagelevel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learn PySpark StorageLevel With Example - DataFlair\" \/>\n<meta property=\"og:description\" content=\"PySpark StorageLevel tutorial: PySpark StorageLevel Example, what is Pyspark StorageLevel, class variable and instance method in PySpark StorageLevel\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/pyspark-storagelevel\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-30T04:04:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-12T05:39:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/PySpark-StorageLevel-01.jpg\" \/>\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\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Learn PySpark StorageLevel With Example - DataFlair","description":"PySpark StorageLevel tutorial: PySpark StorageLevel Example, what is Pyspark StorageLevel, class variable and instance method in PySpark StorageLevel","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:\/\/data-flair.training\/blogs\/pyspark-storagelevel\/","og_locale":"en_US","og_type":"article","og_title":"Learn PySpark StorageLevel With Example - DataFlair","og_description":"PySpark StorageLevel tutorial: PySpark StorageLevel Example, what is Pyspark StorageLevel, class variable and instance method in PySpark StorageLevel","og_url":"https:\/\/data-flair.training\/blogs\/pyspark-storagelevel\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-06-30T04:04:23+00:00","article_modified_time":"2021-05-12T05:39:08+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/PySpark-StorageLevel-01.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/pyspark-storagelevel\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/pyspark-storagelevel\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"Learn PySpark StorageLevel With Example","datePublished":"2018-06-30T04:04:23+00:00","dateModified":"2021-05-12T05:39:08+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/pyspark-storagelevel\/"},"wordCount":340,"commentCount":1,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/pyspark-storagelevel\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/PySpark-StorageLevel-01.jpg","keywords":["Class vaiables in PySpark StorageLevel","Instance Methods for PySpark StorageLevel","Introduction to PySpark StorageLevel with Example","PySpark StorageLevel","PySpark StorageLevel example","StorageLevel in PySpark","what is PySpark StorageLevel"],"articleSection":["PySpark Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/pyspark-storagelevel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/pyspark-storagelevel\/","url":"https:\/\/data-flair.training\/blogs\/pyspark-storagelevel\/","name":"Learn PySpark StorageLevel With Example - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/pyspark-storagelevel\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/pyspark-storagelevel\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/PySpark-StorageLevel-01.jpg","datePublished":"2018-06-30T04:04:23+00:00","dateModified":"2021-05-12T05:39:08+00:00","description":"PySpark StorageLevel tutorial: PySpark StorageLevel Example, what is Pyspark StorageLevel, class variable and instance method in PySpark StorageLevel","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/pyspark-storagelevel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/pyspark-storagelevel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/pyspark-storagelevel\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/PySpark-StorageLevel-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/PySpark-StorageLevel-01.jpg","width":1200,"height":628,"caption":"PySpark StorageLevel"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/pyspark-storagelevel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"PySpark Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/pyspark\/"},{"@type":"ListItem","position":3,"name":"Learn PySpark StorageLevel With Example"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/19143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=19143"}],"version-history":[{"count":7,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/19143\/revisions"}],"predecessor-version":[{"id":94280,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/19143\/revisions\/94280"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/19515"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=19143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=19143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=19143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}