

{"id":56841,"date":"2019-05-25T17:07:37","date_gmt":"2019-05-25T11:37:37","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=56841"},"modified":"2019-08-05T09:53:45","modified_gmt":"2019-08-05T04:23:45","slug":"pandas-panel","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/pandas-panel\/","title":{"rendered":"3 Ways to Create Pandas Panel &#8211; Learn to Transpose &amp; Deprecate a Panel"},"content":{"rendered":"<p>Python Pandas Panel is an important container for data which is 3-dimensional. It is a little less used. <em>The term panel data has its origins in econometrics and is actually partially responsible for the name of the library pandas: <strong>pan<\/strong>el <strong>da<\/strong>ta<strong>s<\/strong><\/em>.<\/p>\n<p>The naming of the three axes should be done in a way so as to give a meaning to the operations which involve panel data. If you want to slice or dice a collection or rather dictionary of DataFrame objects, the axis names might seem slightly vague to you:<\/p>\n<ul>\n<li><strong>items:<\/strong> This is axis 0, where each item corresponds to a DataFrame.<\/li>\n<li><strong>major_axis:<\/strong> This is axis 1 and it contains the index or rows of each DataFrame.<\/li>\n<li><strong>minor_axis:<\/strong> This is axis 2 and it contains the columns of each DataFrame.<\/li>\n<\/ul>\n<h2>1. Python Pandas Panel\u00a0Parameters<\/h2>\n<p>Before we start the Pandas Panel Tutorial, here are the parameters of a panel function:<\/p>\n<ol>\n<li><strong>data<\/strong>: The data will be represented by the panel.<\/li>\n<li><strong>items<\/strong>: As mention, it is the axis 0, each item can represent and compare to a DataFrame.<\/li>\n<li><strong>major-axis<\/strong>: This is the axis 1 (Rows of a DataFrame).<\/li>\n<li><strong>minor-axis<\/strong>: This is the axis 2 (columns of a DataFrame).<\/li>\n<li><strong>copy<\/strong>: Boolean value to denote whether data will be copied from inputs.<\/li>\n<li><strong>dtype<\/strong>: Specifies a datatype.<\/li>\n<\/ol>\n<p><em><strong>Explore the <a href=\"https:\/\/data-flair.training\/blogs\/pandas-options-and-customizations\/\">5 Core Pandas Options to Customize Your Data<\/a><\/strong><\/em><\/p>\n<h2>2. How to Create an Empty Panel in Pandas?<\/h2>\n<p>Follow this code to create an empty panel in Pandas.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; empty = pd.Panel()\r\n&gt;&gt;&gt; empty<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Empty-panels-in-Pandas.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-57820\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Empty-panels-in-Pandas.jpg\" alt=\"Create Empty panels in Pandas\" width=\"1366\" height=\"682\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Empty-panels-in-Pandas.jpg 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Empty-panels-in-Pandas-150x75.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Empty-panels-in-Pandas-300x150.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Empty-panels-in-Pandas-768x383.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Empty-panels-in-Pandas-1024x511.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Empty-panels-in-Pandas-520x260.jpg 520w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h2>3. How to Create Pandas Panel?<\/h2>\n<p>At first, we will first import the libraries &#8211;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; import pandas as pd\r\n&gt;&gt;&gt; import numpy as np<\/pre>\n<p>There are quite a few ways to create a Panel in Pandas-<\/p>\n<ol>\n<li>From a 3D ndarray while using optional axis labels<\/li>\n<li>Dict (dictionary) of DataFrame objects<\/li>\n<li>DataFrame using to_panel method<\/li>\n<\/ol>\n<h3>3.1. How to Create Panels in Pandas from a 3D ndarray?<\/h3>\n<p>Creating panels from 3D ndarray using optional axis labels.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_pan = pd.Panel(np.random.randn(4,5,4), items=['1' ,\u20192' ,'3', '4'],major_axis=pd.date_range('1\/2\/2010', periods=5),minor_axis=['J','K','L','M'])<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_pan<\/pre>\n<p><em><strong>Do you know major <a href=\"https:\/\/data-flair.training\/blogs\/basic-functionality-in-pandas\/\">Pandas functions used by Data Scientist?<\/a><\/strong><\/em><\/p>\n<p>There it is, you have created a Panel from a ndarray successfully.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Panels-in-Pandas-from-a-3D-ndarray.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-56873\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Panels-in-Pandas-from-a-3D-ndarray.png\" alt=\"Pandas Panel created by ndarray\" width=\"1366\" height=\"741\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Panels-in-Pandas-from-a-3D-ndarray.png 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Panels-in-Pandas-from-a-3D-ndarray-150x81.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Panels-in-Pandas-from-a-3D-ndarray-300x163.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Panels-in-Pandas-from-a-3D-ndarray-768x417.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Panels-in-Pandas-from-a-3D-ndarray-1024x555.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Panels-in-Pandas-from-a-3D-ndarray-520x282.png 520w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h3>3.2. How to Create Panels in Pandas from a Dict (dictionary)<\/h3>\n<p>Creating panels from a dict (dictionary) of DataFrame objects<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_df = {'df1': pd.DataFrame(np.random.randn(5,6)),'df2': pd.DataFrame(np.random.randn(5,3))}\r\n&gt;&gt;&gt; pd.Panel(dataflair_df)<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Panels-in-Pandas-from-a-Dict.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-56874\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Panels-in-Pandas-from-a-Dict.jpg\" alt=\"Pandas Panel created by dict\" width=\"1366\" height=\"733\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Panels-in-Pandas-from-a-Dict.jpg 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Panels-in-Pandas-from-a-Dict-150x80.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Panels-in-Pandas-from-a-Dict-300x161.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Panels-in-Pandas-from-a-Dict-768x412.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Panels-in-Pandas-from-a-Dict-1024x549.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Panels-in-Pandas-from-a-Dict-520x279.jpg 520w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h3>3.3. How to Create a Panel from a DataFrame?<\/h3>\n<p>Creating panels in pandas with a dataframe using a to_panel method.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_mul = pd.MultiIndex(levels=[['one', 'two'], ['a', 'b']], codes=[[1, 0, 1, 0], [1, 1, 0, 0]])\r\n&gt;&gt;&gt; dataflair_dat = pd.DataFrame({'S1': [2, 3, 4, 5], 'S2': [6, 7, 8, 9]}, index=dataflair_mul)\r\n&gt;&gt;&gt; dataflair_dat.to_panel()<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-a-Pandas-Panel-from-a-DataFrame.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-56875\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-a-Pandas-Panel-from-a-DataFrame.jpg\" alt=\"Pandas Panel created by dataframe\" width=\"1362\" height=\"686\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-a-Pandas-Panel-from-a-DataFrame.jpg 1362w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-a-Pandas-Panel-from-a-DataFrame-150x76.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-a-Pandas-Panel-from-a-DataFrame-300x151.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-a-Pandas-Panel-from-a-DataFrame-768x387.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-a-Pandas-Panel-from-a-DataFrame-1024x516.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-a-Pandas-Panel-from-a-DataFrame-520x262.jpg 520w\" sizes=\"auto, (max-width: 1362px) 100vw, 1362px\" \/><\/a><\/p>\n<h2>4. Column Selection\/Addition\/Deletion<\/h2>\n<h3>4.1 How to Select Column in Panel?<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_pan = pd.Panel(np.random.randn(4,5,4), items=['1' ,'2' ,'3', '4'],major_axis=pd.date_range('1\/2\/2010', periods=5),minor_axis=['J','K','L','M'])\r\n&gt;&gt;&gt; dataflair_pan<\/pre>\n<p><em><strong>Struggling with <a href=\"https:\/\/data-flair.training\/blogs\/sort-pandas-dataframes-series-array\/\">Sorting in Pandas<\/a>?<\/strong><\/em><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_pan['1\u2019]<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Select-Column-in-Pandas-Panel.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-56879\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Select-Column-in-Pandas-Panel.jpg\" alt=\"Select Column in Pandas Panel\" width=\"1366\" height=\"691\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Select-Column-in-Pandas-Panel.jpg 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Select-Column-in-Pandas-Panel-150x76.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Select-Column-in-Pandas-Panel-300x152.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Select-Column-in-Pandas-Panel-768x388.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Select-Column-in-Pandas-Panel-1024x518.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Select-Column-in-Pandas-Panel-520x263.jpg 520w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h3>4.2\u00a0How to Add Column in Panel?<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_pan['3']=dataflair_pan['1']+dataflair_pan['2']\r\n&gt;&gt;&gt; dataflair_pan['3']<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Add-Column-in-Pandas-Panel.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-56880\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Add-Column-in-Pandas-Panel.jpg\" alt=\"Add Column in Pandas Panel\" width=\"1366\" height=\"657\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Add-Column-in-Pandas-Panel.jpg 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Add-Column-in-Pandas-Panel-150x72.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Add-Column-in-Pandas-Panel-300x144.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Add-Column-in-Pandas-Panel-768x369.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Add-Column-in-Pandas-Panel-1024x493.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Add-Column-in-Pandas-Panel-520x250.jpg 520w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h3>4.3\u00a0How to Delete Column in Panel?<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; del dataflair_pan['4']\r\n&gt;&gt;&gt; dataflair_pan<\/pre>\n<h2>5. How to Transpose a Panel in Pandas?<\/h2>\n<p>Let&#8217;s start the process of transposing of panels-<\/p>\n<p><strong>Creating a new panel<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_pan = pd.Panel(np.random.randn(4,5,4), items=['1' ,'2' ,'3', '4'],major_axis=pd.date_range('1\/2\/2010', periods=5),minor_axis=['J','K','L','M'])\r\n&gt;&gt;&gt; dataflair_pan<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-a-pandas-panels-to-transpose.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-56882\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-a-pandas-panels-to-transpose.jpg\" alt=\"Create a Pandas panel\" width=\"1364\" height=\"717\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-a-pandas-panels-to-transpose.jpg 1364w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-a-pandas-panels-to-transpose-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-a-pandas-panels-to-transpose-300x158.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-a-pandas-panels-to-transpose-768x404.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-a-pandas-panels-to-transpose-1024x538.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-a-pandas-panels-to-transpose-520x273.jpg 520w\" sizes=\"auto, (max-width: 1364px) 100vw, 1364px\" \/><\/a><\/p>\n<p><strong>Transposing a panel<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_pan.transpose(1, 2, 0)<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Transposing-a-pandas-panel.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-56883\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Transposing-a-pandas-panel.jpg\" alt=\"Transposing a pandas panel\" width=\"1366\" height=\"698\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Transposing-a-pandas-panel.jpg 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Transposing-a-pandas-panel-150x77.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Transposing-a-pandas-panel-300x153.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Transposing-a-pandas-panel-768x392.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Transposing-a-pandas-panel-1024x523.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Transposing-a-pandas-panel-520x266.jpg 520w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h2>6. How to Select a Data from a Pandas Panel?<\/h2>\n<p><strong>Creating a Panel<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_pan = pd.Panel(np.random.randn(4,5,4), items=['1' ,'2' ,'3', '4'],major_axis=pd.date_range('1\/2\/2010', periods=5),minor_axis=['J','K','L','M'])\r\n&gt;&gt;&gt; dataflair_pan<\/pre>\n<p><strong>Follow the steps-<\/strong><\/p>\n<h5>1. Selecting an Item<\/h5>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_pan['2']<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-an-Item-in-Pandas-panel.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-56885\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-an-Item-in-Pandas-panel.jpg\" alt=\"Selecting an Item\" width=\"1366\" height=\"671\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-an-Item-in-Pandas-panel.jpg 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-an-Item-in-Pandas-panel-150x74.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-an-Item-in-Pandas-panel-300x147.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-an-Item-in-Pandas-panel-768x377.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-an-Item-in-Pandas-panel-1024x503.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-an-Item-in-Pandas-panel-520x255.jpg 520w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h5>2. Selecting a Major Axis<\/h5>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_pan.major_xs(dataflair_pan.major_axis[3])<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-a-Major-Axis-in-Pandas.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-56886\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-a-Major-Axis-in-Pandas.jpg\" alt=\"Selecting a Major Axis\" width=\"1365\" height=\"632\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-a-Major-Axis-in-Pandas.jpg 1365w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-a-Major-Axis-in-Pandas-150x69.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-a-Major-Axis-in-Pandas-300x139.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-a-Major-Axis-in-Pandas-768x356.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-a-Major-Axis-in-Pandas-1024x474.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-a-Major-Axis-in-Pandas-520x241.jpg 520w\" sizes=\"auto, (max-width: 1365px) 100vw, 1365px\" \/><\/a><\/p>\n<h5>3. Selecting a Minor Axis<\/h5>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_pan.minor_xs('K')<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-a-Minor-Axis-in-Pandas.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-56887\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-a-Minor-Axis-in-Pandas.jpg\" alt=\"Selecting a Minor Axis\" width=\"1366\" height=\"660\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-a-Minor-Axis-in-Pandas.jpg 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-a-Minor-Axis-in-Pandas-150x72.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-a-Minor-Axis-in-Pandas-300x145.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-a-Minor-Axis-in-Pandas-768x371.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-a-Minor-Axis-in-Pandas-1024x495.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Selecting-a-Minor-Axis-in-Pandas-520x251.jpg 520w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h2>7. How to Deprecate a Pandas Panel?<\/h2>\n<p>Since <a href=\"https:\/\/pandas.pydata.org\/\">Pandas<\/a> has increased in its versatility, efficient routines for indexing and functioning for Series, Panels, and DataFrames has made codes difficult to understand. A 3-D Panel is uncommon for Data Analysis, unlike a 1-D Series or 2-D DataFrame. In fact, the xarray package was built specifically to support the panel\u2019s multidimensional analysis.<\/p>\n<p>Hence, we <strong>deprecate the panel to a Multi-Index DataFrame or an xarray.<\/strong><\/p>\n<p>Deprecating to a Multi-Index DataFrame<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_pan.to_frame()<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Deprecate-a-Pandas-Panel.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-56889\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Deprecate-a-Pandas-Panel.jpg\" alt=\"Deprecate a Pandas Panel\" width=\"1366\" height=\"651\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Deprecate-a-Pandas-Panel.jpg 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Deprecate-a-Pandas-Panel-150x71.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Deprecate-a-Pandas-Panel-300x143.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Deprecate-a-Pandas-Panel-768x366.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Deprecate-a-Pandas-Panel-1024x488.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Deprecate-a-Pandas-Panel-520x248.jpg 520w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h2>8. Summary<\/h2>\n<p>Panels play an important role in Pandas. Now, you studied 3 ways to create a panel in pandas &#8211; from ndarray, dict and dataframes. In this article, we practiced how\u00a0to transpose and deprecate a Panel. In short, you are ready to face any query related to panels. But, don&#8217;t forget to check next pandas tutorial &#8211;<a href=\"https:\/\/data-flair.training\/blogs\/iteration-in-pandas\/\"><strong> Iteration in pandas<\/strong>.<\/a><\/p>\n<p>If you have any query or suggestion, please approach our comment section.<span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1540,&quot;href&quot;:&quot;https:\\\/\\\/pandas.pydata.org&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251011085401\\\/https:\\\/\\\/pandas.pydata.org\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-09 10:37:21&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-14 09:06:34&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-17 13:11:54&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-22 09:38:20&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-26 15:42:58&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-31 04:38:39&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-03 08:59:31&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-12 11:59:57&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-16 05:20:35&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-19 06:17:51&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-25 05:47:20&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-28 21:00:54&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-01 16:46:42&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-05 08:01:25&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-08 20:28:29&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-12 06:32:33&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-15 18:25:52&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-19 10:19:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-22 14:14:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-26 04:22:39&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-01 14:08:43&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-08 08:27:46&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-11 10:12:26&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-15 07:27:01&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-20 02:49:08&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-24 09:19:58&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-27 12:26:52&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-31 01:25:42&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-03 14:06:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-07 00:07:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-11 11:43:57&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-15 18:53:40&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-20 10:50:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-24 09:51:42&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-28 11:57:30&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-03 06:29:37&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-06 13:23:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-11 05:43:59&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-16 04:55:23&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-19 18:47:29&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-23 07:25:52&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-26 11:38:14&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-01 05:03:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-04 10:26:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-09 10:06:47&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-13 04:00:28&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-17 04:34:58&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-20 09:39:37&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-25 12:19:33&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-28 14:29:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-01 14:41:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-05 00:04:45&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-07-05 00:04:45&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python Pandas Panel is an important container for data which is 3-dimensional. It is a little less used. The term panel data has its origins in econometrics and is actually partially responsible for the&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":56890,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19475],"tags":[19881,19880,19883,19878,19879,19882],"class_list":["post-56841","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pandas","tag-create-an-empty-panel","tag-create-panel-in-pandas","tag-deprecate-a-panel","tag-pandas-panel-tutorial","tag-python-pandas-panel","tag-transpose-a-panel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>3 Ways to Create Pandas Panel - Learn to Transpose &amp; Deprecate a Panel - DataFlair<\/title>\n<meta name=\"description\" content=\"Take this 3 easy steps to create pandas panel. Don&#039;t forget to practice Transpose &amp; Deprecate a Panel in Pandas witth example\" \/>\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\/pandas-panel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"3 Ways to Create Pandas Panel - Learn to Transpose &amp; Deprecate a Panel - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Take this 3 easy steps to create pandas panel. Don&#039;t forget to practice Transpose &amp; Deprecate a Panel in Pandas witth example\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/pandas-panel\/\" \/>\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=\"2019-05-25T11:37:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-08-05T04:23:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Panals-in-Pandas.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"802\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\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=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"3 Ways to Create Pandas Panel - Learn to Transpose &amp; Deprecate a Panel - DataFlair","description":"Take this 3 easy steps to create pandas panel. Don't forget to practice Transpose & Deprecate a Panel in Pandas witth example","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\/pandas-panel\/","og_locale":"en_US","og_type":"article","og_title":"3 Ways to Create Pandas Panel - Learn to Transpose &amp; Deprecate a Panel - DataFlair","og_description":"Take this 3 easy steps to create pandas panel. Don't forget to practice Transpose & Deprecate a Panel in Pandas witth example","og_url":"https:\/\/data-flair.training\/blogs\/pandas-panel\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2019-05-25T11:37:37+00:00","article_modified_time":"2019-08-05T04:23:45+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Panals-in-Pandas.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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/pandas-panel\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/pandas-panel\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"3 Ways to Create Pandas Panel &#8211; Learn to Transpose &amp; Deprecate a Panel","datePublished":"2019-05-25T11:37:37+00:00","dateModified":"2019-08-05T04:23:45+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/pandas-panel\/"},"wordCount":609,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/pandas-panel\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Panals-in-Pandas.jpg","keywords":["Create an empty panel","Create panel in Pandas","Deprecate a Panel","Pandas Panel Tutorial","Python Pandas Panel","Transpose a panel"],"articleSection":["Pandas Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/pandas-panel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/pandas-panel\/","url":"https:\/\/data-flair.training\/blogs\/pandas-panel\/","name":"3 Ways to Create Pandas Panel - Learn to Transpose &amp; Deprecate a Panel - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/pandas-panel\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/pandas-panel\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Panals-in-Pandas.jpg","datePublished":"2019-05-25T11:37:37+00:00","dateModified":"2019-08-05T04:23:45+00:00","description":"Take this 3 easy steps to create pandas panel. Don't forget to practice Transpose & Deprecate a Panel in Pandas witth example","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/pandas-panel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/pandas-panel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/pandas-panel\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Panals-in-Pandas.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Panals-in-Pandas.jpg","width":802,"height":420},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/pandas-panel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Pandas Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/pandas\/"},{"@type":"ListItem","position":3,"name":"3 Ways to Create Pandas Panel &#8211; Learn to Transpose &amp; Deprecate a Panel"}]},{"@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\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/56841","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=56841"}],"version-history":[{"count":11,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/56841\/revisions"}],"predecessor-version":[{"id":66773,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/56841\/revisions\/66773"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/56890"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=56841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=56841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=56841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}