

{"id":57204,"date":"2019-05-30T17:34:47","date_gmt":"2019-05-30T12:04:47","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=57204"},"modified":"2019-05-31T12:51:12","modified_gmt":"2019-05-31T07:21:12","slug":"pandas-concatenation","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/pandas-concatenation\/","title":{"rendered":"Pandas Concatenation &#8211; Best Tutorial for Concatenating Series &amp; DataFrames"},"content":{"rendered":"<p>Python pandas concatenation is a process of joining of the object along an axis, with set logic applied to other axes, if any (because a series doesn\u2019t have any other axes).\u00a0These are the main parameters involved in pandas concatenation- object, axis, handling of other axes, and keys.<\/p>\n<p>You have seen many articles on the internet about pandas concatenation. But, we are going to serve you the best one, in which, you will get the knowledge and practice the concatenation on pandas series and dataframes.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-57241\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation.jpg\" alt=\"Pandas Concatenation\" width=\"802\" height=\"421\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation.jpg 802w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation-768x403.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation-520x273.jpg 520w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/a><\/p>\n<p>Before we start\u00a0concatenation, we need to import the pandas library:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; import pandas as pd<\/pre>\n<p>&nbsp;<\/p>\n<h2>1. How to concatenate pandas series?<\/h2>\n<h4>1.1. How to create a pandas series?<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_a= pd.Series([1,2,3,4])\r\n&gt;&gt;&gt; dataflair_a<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p>0\u00a0 \u00a01<br \/>\n1\u00a0 \u00a02<br \/>\n2\u00a0 \u00a03<br \/>\n3\u00a0 \u00a04<br \/>\ndtype: int64<\/p>\n<p><strong><em>Get a complete guide to <a href=\"https:\/\/data-flair.training\/blogs\/pandas-series\/\">master in pandas series<\/a><\/em><\/strong><\/p>\n<p><strong>Create another Pandas series(b)\u00a0<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_b= pd.Series([5,6,7,8])\r\n&gt;&gt;&gt; dataflair_b<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p>0 5<br \/>\n1 6<br \/>\n2 7<br \/>\n3 8<br \/>\ndtype: int64<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-pandas-Series.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-57222 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-pandas-Series.jpg\" alt=\"Create pandas Series\" width=\"1366\" height=\"660\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-pandas-Series.jpg 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-pandas-Series-150x72.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-pandas-Series-300x145.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-pandas-Series-768x371.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-pandas-Series-1024x495.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-pandas-Series-520x251.jpg 520w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h4>1.2. How to concatenate the pandas series?<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; pd.concat([dataflair_a,dataflair_b])<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p>0\u00a0 \u00a01<br \/>\n1\u00a0 \u00a02<br \/>\n2\u00a0 \u00a03<br \/>\n3\u00a0 \u00a04<br \/>\n0\u00a0 \u00a05<br \/>\n1\u00a0 \u00a06<br \/>\n2\u00a0 \u00a07<br \/>\n3\u00a0 \u00a08<br \/>\ndtype: int64<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Concatenate-the-Pandas-Series.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-57223\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Concatenate-the-Pandas-Series.jpg\" alt=\"Concatenate the Pandas Series\" width=\"1366\" height=\"731\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Concatenate-the-Pandas-Series.jpg 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Concatenate-the-Pandas-Series-150x80.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Concatenate-the-Pandas-Series-300x161.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Concatenate-the-Pandas-Series-768x411.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Concatenate-the-Pandas-Series-1024x548.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Concatenate-the-Pandas-Series-520x278.jpg 520w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<p><em><strong>Get the easy steps to<a href=\"https:\/\/data-flair.training\/blogs\/sort-pandas-dataframes-series-array\/\">\u00a0sort pandas dataframes and series<\/a> with example<\/strong><\/em><\/p>\n<h4>1.3. Clear the existing index and make a new index<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; pd.concat([dataflair_a,dataflair_b], ignore_index=True)<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p>0\u00a0 \u00a01<br \/>\n1\u00a0 \u00a02<br \/>\n2\u00a0 \u00a03<br \/>\n3\u00a0 \u00a04<br \/>\n4\u00a0 \u00a05<br \/>\n5\u00a0 \u00a06<br \/>\n6\u00a0 \u00a07<br \/>\n7\u00a0 \u00a08<br \/>\ndtype: int64<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/make-a-new-index-in-Pandas.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-57225 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/make-a-new-index-in-Pandas.jpg\" alt=\"make a new index \" width=\"1366\" height=\"741\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/make-a-new-index-in-Pandas.jpg 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/make-a-new-index-in-Pandas-150x81.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/make-a-new-index-in-Pandas-300x163.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/make-a-new-index-in-Pandas-768x417.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/make-a-new-index-in-Pandas-1024x555.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/make-a-new-index-in-Pandas-520x282.jpg 520w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h4>1.4. How to add a hierarchical index on pandas series?<\/h4>\n<p>Let&#8217;s take this example to perform pandas concatenation on keys-<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; pd.concat([dataflair_a, dataflair_b], keys=['a', 'b',])<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p>a\u00a0 \u00a0 0\u00a0 \u00a0 1<br \/>\n1\u00a0 \u00a0 \u00a02<br \/>\n2\u00a0 \u00a0 3<br \/>\n3\u00a0 \u00a0 4<br \/>\nb\u00a0 \u00a0 0\u00a0 \u00a05<br \/>\n1\u00a0 \u00a06<br \/>\n2\u00a0 \u00a07<br \/>\n3\u00a0 \u00a08<br \/>\ndtype: int64<\/p>\n<p><em><strong>Don&#8217;t forget to check\u00a0<a href=\"https:\/\/data-flair.training\/blogs\/pandas-function-applications\/\">pandas function applications<\/a><\/strong><\/em><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation-on-keys.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-57227 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation-on-keys.jpg\" alt=\"Pandas Concatenating on keys\" width=\"1366\" height=\"741\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation-on-keys.jpg 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation-on-keys-150x81.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation-on-keys-300x163.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation-on-keys-768x417.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation-on-keys-1024x555.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation-on-keys-520x282.jpg 520w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h4>1.5. Label the index<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; pd.concat([dataflair_a, dataflair_b], keys=['a', 'b'],names=['Series name', 'Row ID'])<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p>Series name Row ID<br \/>\na\u00a0 \u00a0 0\u00a0 \u00a0 1<br \/>\n1\u00a0 \u00a0 \u00a02<br \/>\n2\u00a0 \u00a0 3<br \/>\n3\u00a0 \u00a0 4<br \/>\nb\u00a0 \u00a0 0\u00a0 \u00a05<br \/>\n1\u00a0 \u00a06<br \/>\n2\u00a0 \u00a07<br \/>\n3\u00a0 \u00a08<br \/>\ndtype: int64<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Label-the-pandas-Series-Index-.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-57228\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Label-the-pandas-Series-Index-.jpg\" alt=\" Label the Index\" width=\"1364\" height=\"738\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Label-the-pandas-Series-Index-.jpg 1364w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Label-the-pandas-Series-Index--150x81.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Label-the-pandas-Series-Index--300x162.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Label-the-pandas-Series-Index--768x416.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Label-the-pandas-Series-Index--1024x554.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Label-the-pandas-Series-Index--520x281.jpg 520w\" sizes=\"auto, (max-width: 1364px) 100vw, 1364px\" \/><\/a><\/p>\n<h2>2. How to concatenate pandas dataframes?<\/h2>\n<h4>2.1. How to create pandas dataframes?<\/h4>\n<p>Print the first pandas dataframe<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_A = pd.DataFrame([['a', 1], ['b', 2]], columns=['letter', 'number']) \r\n&gt;&gt;&gt; dataflair_B = pd.DataFrame([['c', 3], ['d', 4]], columns=['letter', 'number'])\r\n&gt;&gt;&gt; dataflair_A<\/pre>\n<p>Print the second pandas dataframe<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_B<\/pre>\n<p><em><strong>Don&#8217;t miss the opportunity to grab the details about <a href=\"https:\/\/data-flair.training\/blogs\/pandas-dataframe\/\">pandas dataframes<\/a><\/strong><\/em><\/p>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Pandas-DataFrames.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-57229\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Pandas-DataFrames.jpg\" alt=\"The process of creation of dataframes in Pandas\" width=\"1364\" height=\"738\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Pandas-DataFrames.jpg 1364w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Pandas-DataFrames-150x81.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Pandas-DataFrames-300x162.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Pandas-DataFrames-768x416.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Pandas-DataFrames-1024x554.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Create-Pandas-DataFrames-520x281.jpg 520w\" sizes=\"auto, (max-width: 1364px) 100vw, 1364px\" \/><\/a><\/p>\n<h4>2.2 How to concatenate pandas dataframes?<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; pd.concat([dataflair_A,dataflair_B])<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenate-the-DataFrames.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-57230\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenate-the-DataFrames.jpg\" alt=\"Pandas Concatenate the DataFrames\" width=\"1364\" height=\"738\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenate-the-DataFrames.jpg 1364w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenate-the-DataFrames-150x81.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenate-the-DataFrames-300x162.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenate-the-DataFrames-768x416.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenate-the-DataFrames-1024x554.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenate-the-DataFrames-520x281.jpg 520w\" sizes=\"auto, (max-width: 1364px) 100vw, 1364px\" \/><\/a><\/p>\n<h4>2.3 Concatenating pandas dataframes having different columns<\/h4>\n<p>Concatenate pandas dataframes with different, overlapping columns and <strong>return everything<\/strong><\/p>\n<p>Create the third dataframe in Pandas<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_C = pd.DataFrame([['c', 3, 'duck'], ['d', 4, 'hen']],columns=['letter', 'number', 'bird'])\r\n&gt;&gt;&gt; dataflair_C<\/pre>\n<p>Concatenate it with A using:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; pd.concat([dataflair_A,dataflair_C])<\/pre>\n<p><em><strong>Explore the 3 unique ways to <a href=\"https:\/\/data-flair.training\/blogs\/iteration-in-pandas\/\">iterate over dataframes<\/a><\/strong><\/em><\/p>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenate-DataFrames-having-different-columns-.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-57231\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenate-DataFrames-having-different-columns-.jpg\" alt=\"Pandas Concatenate DataFrames having different columns\u00a0\" width=\"1364\" height=\"738\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenate-DataFrames-having-different-columns-.jpg 1364w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenate-DataFrames-having-different-columns--150x81.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenate-DataFrames-having-different-columns--300x162.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenate-DataFrames-having-different-columns--768x416.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenate-DataFrames-having-different-columns--1024x554.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenate-DataFrames-having-different-columns--520x281.jpg 520w\" sizes=\"auto, (max-width: 1364px) 100vw, 1364px\" \/><\/a><\/p>\n<p>Notice NaN where there are no values in dataframe A.<\/p>\n<h4>2.4 Concatenating pandas dataframes with overlapping columns and only returning those<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; pd.concat([dataflair_A,dataflair_C], join=\"inner\")<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Concatenate-DataFrames-having-overlapping-columns-and-only-return-those.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-57234\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Concatenate-DataFrames-having-overlapping-columns-and-only-return-those.jpg\" alt=\"Pandas Concatenate DataFrames having overlapping columns and only return those\" width=\"1364\" height=\"738\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Concatenate-DataFrames-having-overlapping-columns-and-only-return-those.jpg 1364w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Concatenate-DataFrames-having-overlapping-columns-and-only-return-those-150x81.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Concatenate-DataFrames-having-overlapping-columns-and-only-return-those-300x162.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Concatenate-DataFrames-having-overlapping-columns-and-only-return-those-768x416.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Concatenate-DataFrames-having-overlapping-columns-and-only-return-those-1024x554.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Concatenate-DataFrames-having-overlapping-columns-and-only-return-those-520x281.jpg 520w\" sizes=\"auto, (max-width: 1364px) 100vw, 1364px\" \/><\/a><\/p>\n<h4>2.5 How to combine pandas dataframes horizontally?<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; pd.concat([dataflair_A,dataflair_B], axis=1)<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/combine-Pandas-DataFrames-horizontally.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-57233\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/combine-Pandas-DataFrames-horizontally.jpg\" alt=\"combine Pandas DataFrames horizontally\" width=\"1364\" height=\"738\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/combine-Pandas-DataFrames-horizontally.jpg 1364w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/combine-Pandas-DataFrames-horizontally-150x81.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/combine-Pandas-DataFrames-horizontally-300x162.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/combine-Pandas-DataFrames-horizontally-768x416.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/combine-Pandas-DataFrames-horizontally-1024x554.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/combine-Pandas-DataFrames-horizontally-520x281.jpg 520w\" sizes=\"auto, (max-width: 1364px) 100vw, 1364px\" \/><\/a><\/p>\n<h4>2.6 Concatenating pandas dataframes using .append()<\/h4>\n<p><a href=\"https:\/\/pandas.pydata.org\/pandas-docs\/stable\/user_guide\/merging.html\">.append()<\/a> makes an entire copy of the data again and again before appending. Therefore reusing it continuously can lower your program\u2019s performance significantly.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_A = pd.DataFrame([['a', 1], ['b', 2]], columns=['letter', 'number'])\r\n&gt;&gt;&gt; dataflair_A<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_B = pd.DataFrame([['c', 3], ['d', 4]], columns=['letter', 'number'])\r\n&gt;&gt;&gt; dataflair_B<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; result = dataflair_A.append(dataflair_B)\r\n&gt;&gt;&gt; result<\/pre>\n<p><em><strong>Now, you can<a href=\"https:\/\/data-flair.training\/blogs\/pandas-options-and-customizations\/\"> customize your data with 5 Pandas Options<\/a><\/strong><\/em><\/p>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-DataFrame-by-append.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-57235\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-DataFrame-by-append.jpg\" alt=\"Pandas Concatenating DataFrame using .append()\" width=\"1364\" height=\"738\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-DataFrame-by-append.jpg 1364w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-DataFrame-by-append-150x81.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-DataFrame-by-append-300x162.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-DataFrame-by-append-768x416.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-DataFrame-by-append-1024x554.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-DataFrame-by-append-520x281.jpg 520w\" sizes=\"auto, (max-width: 1364px) 100vw, 1364px\" \/><\/a><\/p>\n<h4>2.7.Concatenating pandas dataframes while ignoring indexes<\/h4>\n<p>If you are working with two dataframes which do not have quite meaningful indexes, you can choose to concatenate them, while ignoring their overlapping indexes. For doing this, you will have to use the ignore_index argument.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; result = pd.concat([dataflair_A,dataflair_B], ignore_index=True)\r\n&gt;&gt;&gt; result<\/pre>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-DataFrame-by-ignoring-indexes.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-57236 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-DataFrame-by-ignoring-indexes.jpg\" alt=\"Concatenating DataFrame by ignoring indexes\" width=\"1364\" height=\"738\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-DataFrame-by-ignoring-indexes.jpg 1364w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-DataFrame-by-ignoring-indexes-150x81.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-DataFrame-by-ignoring-indexes-300x162.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-DataFrame-by-ignoring-indexes-768x416.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-DataFrame-by-ignoring-indexes-1024x554.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-DataFrame-by-ignoring-indexes-520x281.jpg 520w\" sizes=\"auto, (max-width: 1364px) 100vw, 1364px\" \/><\/a><\/p>\n<p>Thus, you can see that the previous indexes were ignored and new indexes were created altogether.<\/p>\n<h4>2.8. Concatenating pandas dataframes using mixed ndims<\/h4>\n<p>If you want to, you can concatenate a mix of dataframe and series. Going by the hierarchy, the series will be converted into a dataframe with the name of the series being the name of the column name.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt;&gt;&gt; dataflair_s = pd.Series(['S0', 'S1'], name='S')\r\n&gt;&gt;&gt; result = pd.concat([dataflair_A,dataflair_s], axis=1)\r\n&gt;&gt;&gt; result<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-with-mixed-ndims.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-57237 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-with-mixed-ndims.jpg\" alt=\" Concatenating with mixed ndims\" width=\"1364\" height=\"738\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-with-mixed-ndims.jpg 1364w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-with-mixed-ndims-150x81.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-with-mixed-ndims-300x162.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-with-mixed-ndims-768x416.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-with-mixed-ndims-1024x554.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenating-with-mixed-ndims-520x281.jpg 520w\" sizes=\"auto, (max-width: 1364px) 100vw, 1364px\" \/><\/a><\/p>\n<h2>Summary<\/h2>\n<p>Now, you can\u00a0concatenate dataframes and series in pandas easily with the help of the pandas.concat() and append() functions. Pandas\u00a0concatenation makes your work easy. In our next Pandas tutorial, we will discuss\u00a0<strong>how to merge and join objects in pandas?<\/strong><\/p>\n<p>Hope, this Pandas Concatenation helped you. Give us suggestions and feedback to serve you better.<span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1521,&quot;href&quot;:&quot;https:\\\/\\\/pandas.pydata.org\\\/pandas-docs\\\/stable\\\/user_guide\\\/merging.html&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251009162138\\\/https:\\\/\\\/pandas.pydata.org\\\/pandas-docs\\\/stable\\\/user_guide\\\/merging.html&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-09 10:15:01&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-02 20:03:27&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-07 00:42:07&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-12 23:42:56&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-18 06:19:29&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-26 09:02:58&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-03 04:35:51&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-11 17:17:22&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-12 04:30:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-22 03:30:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-01 12:26:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-13 14:45:41&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-23 07:32:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-13 11:35:22&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-21 04:12:22&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-29 04:19:39&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-04 09:32:18&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-08 02:12:54&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-07-11 10:51:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-15 09:13:48&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-07-15 09:13:48&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python pandas concatenation is a process of joining of the object along an axis, with set logic applied to other axes, if any (because a series doesn\u2019t have any other axes).\u00a0These are the main&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":57241,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19475],"tags":[19966,19967,19965,19963,19964],"class_list":["post-57204","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pandas","tag-concatenating-pandas-dataframes","tag-concatenating-pandas-series","tag-pandas-concat","tag-pandas-concatenate","tag-pandas-concatenating"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pandas Concatenation - Best Tutorial for Concatenating Series &amp; DataFrames - DataFlair<\/title>\n<meta name=\"description\" content=\"Python Pandas Concatenation is a process of joining of the object along an axis. Now, you can learn to cancatnate the pandas Dataframes and Series with .concat &amp; append funcitons\" \/>\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-concatenation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pandas Concatenation - Best Tutorial for Concatenating Series &amp; DataFrames - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Python Pandas Concatenation is a process of joining of the object along an axis. Now, you can learn to cancatnate the pandas Dataframes and Series with .concat &amp; append funcitons\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/pandas-concatenation\/\" \/>\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-30T12:04:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-05-31T07:21:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"802\" \/>\n\t<meta property=\"og:image:height\" content=\"421\" \/>\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=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pandas Concatenation - Best Tutorial for Concatenating Series &amp; DataFrames - DataFlair","description":"Python Pandas Concatenation is a process of joining of the object along an axis. Now, you can learn to cancatnate the pandas Dataframes and Series with .concat & append funcitons","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-concatenation\/","og_locale":"en_US","og_type":"article","og_title":"Pandas Concatenation - Best Tutorial for Concatenating Series &amp; DataFrames - DataFlair","og_description":"Python Pandas Concatenation is a process of joining of the object along an axis. Now, you can learn to cancatnate the pandas Dataframes and Series with .concat & append funcitons","og_url":"https:\/\/data-flair.training\/blogs\/pandas-concatenation\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2019-05-30T12:04:47+00:00","article_modified_time":"2019-05-31T07:21:12+00:00","og_image":[{"width":802,"height":421,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation.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":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/pandas-concatenation\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/pandas-concatenation\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Pandas Concatenation &#8211; Best Tutorial for Concatenating Series &amp; DataFrames","datePublished":"2019-05-30T12:04:47+00:00","dateModified":"2019-05-31T07:21:12+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/pandas-concatenation\/"},"wordCount":521,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/pandas-concatenation\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation.jpg","keywords":["concatenating pandas DataFrames","concatenating pandas Series","Pandas Concat","Pandas concatenate","Pandas concatenating"],"articleSection":["Pandas Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/pandas-concatenation\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/pandas-concatenation\/","url":"https:\/\/data-flair.training\/blogs\/pandas-concatenation\/","name":"Pandas Concatenation - Best Tutorial for Concatenating Series &amp; DataFrames - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/pandas-concatenation\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/pandas-concatenation\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation.jpg","datePublished":"2019-05-30T12:04:47+00:00","dateModified":"2019-05-31T07:21:12+00:00","description":"Python Pandas Concatenation is a process of joining of the object along an axis. Now, you can learn to cancatnate the pandas Dataframes and Series with .concat & append funcitons","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/pandas-concatenation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/pandas-concatenation\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/pandas-concatenation\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Concatenation.jpg","width":802,"height":421,"caption":"Pandas Concatenation"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/pandas-concatenation\/#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":"Pandas Concatenation &#8211; Best Tutorial for Concatenating Series &amp; DataFrames"}]},{"@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\/57204","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=57204"}],"version-history":[{"count":9,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/57204\/revisions"}],"predecessor-version":[{"id":57315,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/57204\/revisions\/57315"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/57241"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=57204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=57204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=57204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}