

{"id":55567,"date":"2019-05-08T16:08:39","date_gmt":"2019-05-08T10:38:39","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=55567"},"modified":"2025-04-14T17:36:03","modified_gmt":"2025-04-14T12:06:03","slug":"python-pandas-tutorial","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/python-pandas-tutorial\/","title":{"rendered":"Python Pandas Tutorial &#8211; Learn Pandas For Data Science in 7 Mins"},"content":{"rendered":"<p>Do you want to get started with Data Science? Do you want to analyze huge sets of data? And do you want to manipulate spreadsheets and CSVs with just a few lines of code?<\/p>\n<p>Then Pandas is the library you are looking for. <em>It is easily one of the most sought after libraries for python, and it has a relatively easy learning curve<\/em>.<\/p>\n<p><em>So what are you waiting for? Take this Python Pandas tutorial and grab all the knowledge required to master in Data Science.<\/em><\/p>\n<p><em>Pandas play an important role in Data Science. This Python pandas tutorial helps you to build skills for data scientist and data analyst.<\/em><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Tutorial-01.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-55984\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Tutorial-01.jpg\" alt=\"Introduction to Python Pandas for Beginners\" width=\"802\" height=\"420\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Tutorial-01.jpg 802w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Tutorial-01-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Tutorial-01-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Tutorial-01-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Tutorial-01-520x272.jpg 520w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/a><\/p>\n<p>This Python Pandas tutorial contains many topics which will help you to gain an overall knowledge of Pandas. Let&#8217;s start with a very basic question-<\/p>\n<h3>What is Pandas?<\/h3>\n<p>Data is an integral part of our current world. It helps us predict various events and gives a certain direction to our lives.<\/p>\n<p><em>Pandas help us control and manipulate such data<\/em>.<\/p>\n<p>Thus without a grasp over the knowledge of Pandas, you can completely forget about trying to become a Data Scientist or Data Analyst.<\/p>\n<p>Pandas are an essential tool for a beginners journey to work with data.<\/p>\n<p>Pandas provide essential data structures like series, dataframes, and panels which help in manipulating data sets and time series.<\/p>\n<p>It is free to use and an open source library, making it one of the most widely used data science libraries in the world.<\/p>\n<p>Pandas possess the power to perform various tasks.<\/p>\n<p>Whether it is computing tasks like finding the mean, median and mode of data, or a task of handling large CSV files and manipulating the contents according to our will, Pandas can do it all.<\/p>\n<p>In short, to master data science, you must be skillful in Pandas.<\/p>\n<h3>How to Install Pandas?<\/h3>\n<p>Let&#8217;s start our Python Pandas tutorial with the methods for installing Pandas.<\/p>\n<h4>1. Install Pandas with Anaconda<\/h4>\n<p>This is the easiest method to get pandas on your system, and it is recommended for new and inexperienced users because you get a lot of other important libraries like NumPy and SciPy too.<\/p>\n<p>Just head over to\u00a0<a href=\"https:\/\/www.anaconda.com\/distribution\/#windows\">https:\/\/www.anaconda.com\/distribution\/#windows<\/a><\/p>\n<p>And download the version you are interested in. After downloading the installer, all you have to do is follow a simple setup procedure.<\/p>\n<p>The installer does all the work for you and after it is over, you can easily access the Pandas library.<\/p>\n<h4>2. Install Pandas with pip<\/h4>\n<p>This is also a simple method. One will have pip on their system if they have Python 2 version greater than or equal to 2.7.9 or a python 3 version greater or equal to 3.4.<\/p>\n<p>If you have pip then go ahead and type the command in a terminal or command prompt:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">pip install pandas<\/pre>\n<h3>Key Components of Pandas<\/h3>\n<p><strong>Pandas Series-<\/strong> A series in Pandas can be thought of as a unidimensional array that is used to handle and manipulate data which is stored in it.<\/p>\n<p><strong>Pandas DataFrame-<\/strong> This is a data structure in Pandas, which is made up of multiple series.<\/p>\n<p>Mainly, a Pandas DataFrame can be compared to a two-dimensional array. These are heavily used to store and manipulate data.<\/p>\n<h3>Pandas Library Architecture<\/h3>\n<p>This Python Pandas Tutorial is incomplete without library architecture. So, let&#8217;s discuss the file hierarchy in pandas.<\/p>\n<ul>\n<li><strong>pandas\/core:<\/strong>\u00a0Consists of data structures about the Pandas library.<\/li>\n<li><strong>pandas\/src:<\/strong> Holds the\u00a0basic functionality of Pandas depend on certain algorithms. They are usually written in C or Cython.<\/li>\n<li><strong>pandas\/io:<\/strong>\u00a0Carries the tools to input and output, files, data, etc<\/li>\n<li><strong>pandas\/tools:<\/strong>\u00a0Codes and algorithms for various functions and operations in Pandas. For example: Merge and join, concatenation, etc.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Library-Architecture-01.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-55985\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Library-Architecture-01.jpg\" alt=\"File hierarchy of Pandas\" width=\"802\" height=\"420\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Library-Architecture-01.jpg 802w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Library-Architecture-01-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Library-Architecture-01-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Library-Architecture-01-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Library-Architecture-01-520x272.jpg 520w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/a><\/p>\n<ul>\n<li><strong>pandas\/sparse:<\/strong>\u00a0Carries the sparse versions, i.e., the versions made to handle missing values of various Data Structures in Pandas.<\/li>\n<li><strong>pandas\/stats:<\/strong>\u00a0Contains functions related to statistics, like linear regression<\/li>\n<li><strong>pandas\/util:<\/strong>\u00a0Consist of testing tools and various other utilities to debug the library.<\/li>\n<li><strong>pandas\/rpy:<\/strong> Consists of an interface which helps to connect to R. It is called R2Py<\/li>\n<\/ul>\n<h3>Python Pandas Operations<\/h3>\n<p>In this part of the Python Pandas tutorial, we are going to perform some of the important functions and operations used in Pandas-<\/p>\n<h4>1. Slicing<\/h4>\n<p>You can slice or <em>cut DataFrames to get parts of data<\/em> according to your wish. It helps in filtering out the data which is essential to you.<\/p>\n<p><strong>Example<\/strong> &#8211;\u00a0If we have a series data structure called \u201cser\u201d consisting of [1, 4, 6, 7, 3, 8]<\/p>\n<p>Then with the command ser[0:3] we can slice the data set to give us the first three items [1, 4, 6]<\/p>\n<h4>2. Merging and Joining<\/h4>\n<p>Merging, as the name says, helps to <em>merge multiple datasets<\/em>. One can even choose columns which they want to keep common between two sets.<\/p>\n<p>But merging can only work columnwise. To add index-wise we use Join.<\/p>\n<p><strong>Example<\/strong> &#8211;<\/p>\n<p>If set A is:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Example-of-merging-in-Pandas.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-55986\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Example-of-merging-in-Pandas.png\" alt=\"Set A to merge dataframe\" width=\"225\" height=\"154\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Example-of-merging-in-Pandas.png 225w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Example-of-merging-in-Pandas-150x103.png 150w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/p>\n<p>And set B is:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Example-of-Merging-dataframes-in-Pandas.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-55987\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Example-of-Merging-dataframes-in-Pandas.png\" alt=\"Set B to merge Dataframe\" width=\"145\" height=\"121\" \/><\/a><\/p>\n<p>On merging them we get:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/result-of-merging-in-Pandas.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-55988\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/result-of-merging-in-Pandas.png\" alt=\"Output of Merging pandas data frames\" width=\"285\" height=\"121\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/result-of-merging-in-Pandas.png 285w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/result-of-merging-in-Pandas-150x64.png 150w\" sizes=\"auto, (max-width: 285px) 100vw, 285px\" \/><\/a><\/p>\n<h4>3. Concatenation<\/h4>\n<p>Pandas Concatenation basically sticks two datasets to form one, row-wise.<\/p>\n<p><strong>Example<\/strong> &#8211;<\/p>\n<p>Let set A<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Set-A-of-Concatenation-in-Pandas.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-55989\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Set-A-of-Concatenation-in-Pandas.png\" alt=\"Set A Concatenation in Pandas\" width=\"226\" height=\"148\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Set-A-of-Concatenation-in-Pandas.png 226w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Set-A-of-Concatenation-in-Pandas-150x98.png 150w\" sizes=\"auto, (max-width: 226px) 100vw, 226px\" \/><\/a><\/p>\n<p>And set B<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Set-B-of-Concatenation-in-Pandas.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-55990\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Set-B-of-Concatenation-in-Pandas.png\" alt=\"Example of Concatenation in Pandas\" width=\"226\" height=\"144\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Set-B-of-Concatenation-in-Pandas.png 226w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Set-B-of-Concatenation-in-Pandas-150x96.png 150w\" sizes=\"auto, (max-width: 226px) 100vw, 226px\" \/><\/a><\/p>\n<p>After concatenation:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Output-of-Concatenation-in-pandas.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-55991\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Output-of-Concatenation-in-pandas.png\" alt=\"Pandas Concatenation Results\" width=\"227\" height=\"262\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Output-of-Concatenation-in-pandas.png 227w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Output-of-Concatenation-in-pandas-130x150.png 130w\" sizes=\"auto, (max-width: 227px) 100vw, 227px\" \/><\/a><\/p>\n<h4>4. Index changing<\/h4>\n<p>We can<em> change the index of any dataframe<\/em>. This will help us to manipulate better.<\/p>\n<p><strong>Example<\/strong> &#8211;<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Example-of-Indexing-Changing.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-55992\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Example-of-Indexing-Changing.png\" alt=\"Pandas Index Dataframe Example\" width=\"227\" height=\"262\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Example-of-Indexing-Changing.png 227w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Example-of-Indexing-Changing-130x150.png 130w\" sizes=\"auto, (max-width: 227px) 100vw, 227px\" \/><\/a><\/p>\n<p>In this data set, we can choose the index column to be any of the columns. Like \u201cItem no&#8221; and index it.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Output-of-Indexing-changing-in-Pandas.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-55993 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Output-of-Indexing-changing-in-Pandas.png\" alt=\"Python Pandas Dataframe Indexing Output\" width=\"227\" height=\"262\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Output-of-Indexing-changing-in-Pandas.png 227w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Output-of-Indexing-changing-in-Pandas-130x150.png 130w\" sizes=\"auto, (max-width: 227px) 100vw, 227px\" \/><\/a><\/p>\n<h4>5. GroupBy<\/h4>\n<p>This function has various uses, mostly <em>used to group data together<\/em>, based on a condition.<\/p>\n<p><strong>Example<\/strong> &#8211;<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Example-of-Pandas-GroupBy.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-55994 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Example-of-Pandas-GroupBy.png\" alt=\"Python Pandas GroupBy Example\" width=\"227\" height=\"262\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Example-of-Pandas-GroupBy.png 227w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Example-of-Pandas-GroupBy-130x150.png 130w\" sizes=\"auto, (max-width: 227px) 100vw, 227px\" \/><\/a><\/p>\n<p>Using the groupby function, we can group the vegetables and fruits:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Output-of-Pandas-Groupby.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-55995 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Output-of-Pandas-Groupby.png\" alt=\"Python Pandas Groupby result\" width=\"193\" height=\"101\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Output-of-Pandas-Groupby.png 193w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Output-of-Pandas-Groupby-150x78.png 150w\" sizes=\"auto, (max-width: 193px) 100vw, 193px\" \/><\/a><\/p>\n<h4>6. Data Munging<\/h4>\n<p>It helps us to c<em>onvert data of one form to another<\/em>. For example: Converting a CSV to HTML.<\/p>\n<h3>Features of Pandas<\/h3>\n<p>Python Pandas have a lot of features. The most critical ones would be:<\/p>\n<p><strong>1. Data manipulation:<\/strong> Pandas provides a lot of functions and features to perform various kinds of operations on datasets.<\/p>\n<p><strong>2. Handling Missing Values:<\/strong> Datasets are imperfect and contain a lot of data that is missing. This is handled efficiently by the library.<\/p>\n<p><strong>3. File format support:<\/strong> Various forms of files are supported by Pandas for both input and output purposes.<\/p>\n<p><strong>4. Data cleaning:<\/strong> Data can be very messy. Pandas provide a variety of tools which help in cleaning up data and make it usable for data analysis.<\/p>\n<p><strong>5. Visualize:<\/strong> You can see the results of your data analysis with Pandas, visually. This helps you to understand your results better.<\/p>\n<p><strong>6. Python support:<\/strong> Pandas runs alongside Python. Which gives us access to other libraries for Python, like NumPy, SciPy, and MatPlotLib.<\/p>\n<h3>Application of Pandas<\/h3>\n<p>This part of Python Pandas tutorial tell you where exactly Pandas are used-<\/p>\n<h4>1. Data Analysis<\/h4>\n<p>It is one of the essential uses of Pandas. The library is capable of handling huge sets of data. It is suitable for analyzing huge amounts of data.<\/p>\n<p>The manipulations capabilities allow us to clean and filter data which we can analyze easily.<\/p>\n<p>Some sectors which use data analysis with Pandas are:<\/p>\n<ul>\n<li><strong>Economics<\/strong>: A lot of economics depends on analyzing data and trying to find trends and similarities. Pandas are very helpful in this.<\/li>\n<li><strong>Statistics<\/strong>: Pandas provides a lot of functions to perform various statistical operations.<\/li>\n<li><strong>Web<\/strong>&#8211;<strong>Analytics<\/strong>: Pandas can help to read and analyze the traffic of a website to provide helpful insight and improve the website in various ways.<\/li>\n<\/ul>\n<h4>2. Machine Learning<\/h4>\n<p>It helps to render data for a model to learn and predict results<strong>.<\/strong> Without Pandas, machine learning models would not be able to read data efficiently.<\/p>\n<p>The ability to import data and analyze it is extremely essential. Where it is use-<\/p>\n<ul>\n<li><strong>Recommendations<\/strong>: Only because of machine learning websites like Netflix and Spotify provide excellent recommendations for their users.<\/li>\n<li><strong>Finance<\/strong>: Machine Learning can be used to predict stocks. Pandas is used to handle data of previous stock market dealings which help to predict the future dealings.<\/li>\n<li><strong>Natural Language Processing (NLP)<\/strong>: Using machine learning to understand the human language and its intricacies.<\/li>\n<\/ul>\n<h3>List of Companies using Pandas<\/h3>\n<p>Every company delving into data science with python has to use Pandas. Some of the notable ones are:<\/p>\n<ol>\n<li>Uber<\/li>\n<li>IBM<\/li>\n<li>AppNexus<\/li>\n<li>JP Morgan Chase<\/li>\n<li>Goldman Sachs<\/li>\n<li>Spotify<\/li>\n<li>Pepsico<\/li>\n<li>AQR Capital Management<\/li>\n<li>Vital labs<\/li>\n<\/ol>\n<h3>Python Interview Questions on Pandas<\/h3>\n<p>1. What is Pandas in Python?<\/p>\n<p>2. Where are Pandas used in Python?<\/p>\n<p>3. What is the difference between NumPy and Pandas?<\/p>\n<p>4. What does Pandas Stand for in Python?<\/p>\n<p>5. What is the best thing about Pandas in Python?<\/p>\n<p>6. What are some of the applications of Python Pandas?<\/p>\n<p>7. Name some of the companies using Pandas.<\/p>\n<h3>Conclusion<\/h3>\n<p>Hopefully, this introduction to Pandas has helped you to understand the power of the library.<\/p>\n<p>Pandas is an essential library for any data scientist or machine learning enthusiast.<\/p>\n<p>Both of these streams are extremely lucrative and interesting sectors and are booming currently.<\/p>\n<p>Therefore learning Pandas has become of utmost importance. Now, its time to dive into Pandas, take this <strong><a href=\"https:\/\/data-flair.training\/blogs\/python-pandas-books\/\">best books to learn Pandas<\/a><\/strong>.<span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1572,&quot;href&quot;:&quot;https:\\\/\\\/www.anaconda.com\\\/distribution\\\/#windows&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20200424055228\\\/https:\\\/\\\/www.anaconda.com\\\/distribution\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-09 11:39:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-17 13:10:20&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-20 20:24:59&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-26 11:13:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-01 10:33:30&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-05 09:25:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-08 10:43:20&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-11 17:51:34&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-18 07:35:56&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-23 04:32:54&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-26 07:55:32&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-31 06:15:28&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-03 14:45:49&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-06 15:46:24&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-11 12:28:21&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-16 06:31:35&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-21 07:49:17&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-25 14:38:31&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-28 19:08:09&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-04 09:16:42&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-08 14:46:39&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-12 05:09:08&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-17 11:21:50&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-23 18:02:12&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-27 08:28:44&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-30 18:09:44&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-03 05:36:54&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-09 16:49:47&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-15 04:28:50&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-18 07:47:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-22 04:01:28&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-27 20:48:17&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-01 02:37:21&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-05 13:40:22&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-09 14:05:54&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-13 04:13:04&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-18 07:13:23&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-22 12:34:50&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-26 11:20:43&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-29 13:25:20&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-04 10:59:57&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-08 06:14:14&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-12 17:56:32&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-12 17:56:32&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do you want to get started with Data Science? Do you want to analyze huge sets of data? And do you want to manipulate spreadsheets and CSVs with just a few lines of code?&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":55984,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19475],"tags":[8158,19700,19703,19708,19707,9399,19468,19701,15842,19702],"class_list":["post-55567","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pandas","tag-learn-pandas","tag-pandas-applications","tag-pandas-for-beginners","tag-pandas-for-data-analytics","tag-pandas-for-data-science","tag-pandas-tutorial","tag-python-pandas-features","tag-uses-of-pandas","tag-what-is-pandas","tag-why-pandas-are-popular"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python Pandas Tutorial - Learn Pandas For Data Science in 7 Mins - DataFlair<\/title>\n<meta name=\"description\" content=\"Python Pandas tutorial - Learn pandas for data science &amp; analytics. See features, applications, installation, operations on dataframes.\" \/>\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\/python-pandas-tutorial\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Pandas Tutorial - Learn Pandas For Data Science in 7 Mins - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Python Pandas tutorial - Learn pandas for data science &amp; analytics. See features, applications, installation, operations on dataframes.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/python-pandas-tutorial\/\" \/>\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-08T10:38:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-14T12:06:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Tutorial-01.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=\"10 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Pandas Tutorial - Learn Pandas For Data Science in 7 Mins - DataFlair","description":"Python Pandas tutorial - Learn pandas for data science & analytics. See features, applications, installation, operations on dataframes.","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\/python-pandas-tutorial\/","og_locale":"en_US","og_type":"article","og_title":"Python Pandas Tutorial - Learn Pandas For Data Science in 7 Mins - DataFlair","og_description":"Python Pandas tutorial - Learn pandas for data science & analytics. See features, applications, installation, operations on dataframes.","og_url":"https:\/\/data-flair.training\/blogs\/python-pandas-tutorial\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2019-05-08T10:38:39+00:00","article_modified_time":"2025-04-14T12:06:03+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Tutorial-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":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/python-pandas-tutorial\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/python-pandas-tutorial\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Python Pandas Tutorial &#8211; Learn Pandas For Data Science in 7 Mins","datePublished":"2019-05-08T10:38:39+00:00","dateModified":"2025-04-14T12:06:03+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-pandas-tutorial\/"},"wordCount":1463,"commentCount":7,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-pandas-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Tutorial-01.jpg","keywords":["Learn pandas","Pandas Applications","Pandas for beginners","Pandas for Data Analytics","Pandas for Data Science","pandas tutorial","Python Pandas Features","Uses of Pandas","what is Pandas","Why pandas are popular"],"articleSection":["Pandas Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/python-pandas-tutorial\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/python-pandas-tutorial\/","url":"https:\/\/data-flair.training\/blogs\/python-pandas-tutorial\/","name":"Python Pandas Tutorial - Learn Pandas For Data Science in 7 Mins - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-pandas-tutorial\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-pandas-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Tutorial-01.jpg","datePublished":"2019-05-08T10:38:39+00:00","dateModified":"2025-04-14T12:06:03+00:00","description":"Python Pandas tutorial - Learn pandas for data science & analytics. See features, applications, installation, operations on dataframes.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/python-pandas-tutorial\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/python-pandas-tutorial\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/python-pandas-tutorial\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Tutorial-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/Pandas-Tutorial-01.jpg","width":802,"height":420,"caption":"Introduction to Python Pandas for Beginners"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/python-pandas-tutorial\/#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":"Python Pandas Tutorial &#8211; Learn Pandas For Data Science in 7 Mins"}]},{"@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\/55567","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=55567"}],"version-history":[{"count":19,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/55567\/revisions"}],"predecessor-version":[{"id":144840,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/55567\/revisions\/144840"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/55984"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=55567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=55567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=55567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}