Python for Data Science: Chapter 5: NumPy and Pandas Libraries

Introduction to Pandas

Python library

Pandas is an open‒source library provided by Python.

Introduction to Pandas

• Pandas is an open‒source library provided by Python.

• It is used in data science, data analysis and machine learning activities.

• Pandas is a data manipulation package in Python for tabular data.

• It has functions for analyzing, cleaning, exploring and manipulating data.


Install Pandas

Installing Pandas is very easy. Just issue following command at the command prompt.

pip install Pandas

If you have installed Anaconda, then the Pandas come by default. For using the Pandas functionality we need to import Pandas. The command for this is as follows ‒

In [1]: import pandas as pd


Here, Pandas is imported using the alias pd. In Python, alias are the alternate name for referring to the same thing. (ygon squibebrister Jan

 

Features of Pandas

1) It represents the data in tabular form.

2) It can perform quick and efficient data manipulation and analysis.

3) It can load data from different file formats into in‒memory data objects.

4) It can merge and join two datasets easily.

5) It provides time‒series functionality.

6) It can pivot and reshape data sets.


Data Structures

• In Pandas, there are two important data structures that are used –

1) Series and

2) Data frames.

Let us discuss them in detail

 

Python for Data Science: Chapter 5: NumPy and Pandas Libraries : Tag: Computer Programming, Python, Data Science : Python library - Introduction to Pandas


Python for Data Science: Chapter 5: NumPy and Pandas Libraries



Under Subject


Python for Data Science

AD25201 2nd Semester AIDS Dept | 2025 Regulation | 2nd Semester 2025 Regulation



Related Subjects


English Essentials II

EN25C02 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation



Linear Algebra

MA25C02 2nd Semester | 2025 Regulation


Applied Physics (CSIE) II

PH25C03 2nd Semester AIDS, CSE, IT, CSE(CY) Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Digital Principles and Computer Organization

CS25C06 2nd Semester AIDS, CSE, IT, CSE(CY) Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Basic Electrical and Electronics Engineering

EE25C01 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation


Python for Data Science

AD25201 2nd Semester AIDS Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Re-Engineering for Innovation

ME25C05 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation


Python for Data Science - Laboratory

AD25201 2nd Semester AIDS Dept | 2025 Regulation | 2nd Semester 2025 Regulation