These free B.Pharm notes on introduction to pandas library in python cover chapter 16 of Basics of Python Programming for Pharmaceutical Sciences (BP101T), a first-semester subject. Read the key points below, then study the complete chapter PDF. You can browse every chapter in the Basics of Python Programming for Pharmaceutical Sciences category.
Table of Contents
Read the following document for full information
Overview of introduction to pandas library in python
These notes introduce the Pandas library, the origin of its name from panel data, its creator and its foundation on NumPy. They list its uses in pharmaceutical sciences, explain why Pandas is preferred over traditional spreadsheets for large datasets, and show how to install it with pip or Anaconda and import it as pd.
Key points on introduction to pandas library in python
- Pandas is a Python library for structured, tabular data, and its name comes from the econometrics term panel data.
- Pandas was created by Wes McKinney in 2008, is open-source under the BSD licence and is built on top of NumPy.
- In pharmaceutical sciences, Pandas is used for pharmacokinetic studies, pharmacovigilance, clinical trial data management, drug utilisation studies and dispensing analysis.
- Compared with spreadsheets, Pandas offers scalability, reproducibility, automation, integration with other tools and interoperability with CSV, Excel, JSON and SQL formats.
- Pandas can be installed using pip install pandas or through Anaconda, and is conventionally imported with import pandas as pd.
Relevance to pharmacy practice
Spreadsheets become slow and error-prone with thousands of patient records or long pharmacokinetic time series. Pandas lets a pharmacist or researcher handle such data with repeatable code, which supports pharmacovigilance, clinical trial data management and drug utilisation studies.
Every chapter in this subject builds on the one before it, so do not skip topics that look simple. Definitions, principles, procedures and examples are the parts that examiners return to most often, and a clear understanding here will also make later subjects easier to follow in the coming semesters.
Frequently asked questions on introduction to pandas library in python
Who created the Pandas library?
Pandas was created by Wes McKinney in 2008. It is open-source software released under the BSD licence and is built on top of NumPy.
Why use Pandas instead of Excel?
Excel suits small datasets, but Pandas handles millions of rows, makes analyses reproducible as code, automates routine steps and connects with tools like Scikit-learn and Matplotlib.
How do you install and import Pandas?
Pandas is installed with the command pip install pandas, or comes bundled with Anaconda. It is imported in a script using import pandas as pd.
Quick revision checklist
Use this self-test after reading the chapter on introduction to pandas library in python. If you can do all of the following without looking at your notes, you are ready for the exam.
- I can explain: the origin of the name Pandas
- I can explain: uses of Pandas in pharmaceutical sciences
- I can explain: advantages of Pandas over spreadsheets
- I can explain: how to install Pandas with pip
- I can explain: why Pandas is imported as pd
Study and exam tips
Start by reading the chapter once for the overall idea, then revise introduction to pandas library in python using headings, definitions, principles, reactions and examples. Short-answer questions in the university exam usually ask for definitions, principles, procedures, reactions and uses, so write these in your own words and practise the equations, tables and flow charts that the chapter has.
For wider reading, standard books and open resources such as the NCBI Bookshelf help you confirm terms and see more examples. Revise introduction to pandas library in python again a day later and again a week later, because spaced revision improves long-term memory.
This page is part of the Basics of Python Programming for Pharmaceutical Sciences series for first-semester B.Pharm students on B.Pharm Guru, where every chapter has a short summary and a full PDF. Bookmark this page and share it with classmates who are preparing for the same exam.
Related notes: 18. READING CSV AND EXCEL FILES – PK STUDY DATASETS AND ADR REPORTS, 19. INSPECTING DATASETS USING FUNCTIONS SUCH AS HEAD(), TAIL(), INFO(), AND DESCRIBE().
Next: 17. PANDAS SERIES AND DATAFRAME STRUCTURES. Back to the Basics of Python Programming for Pharmaceutical Sciences category.




