Back to Blog
2025-03-25Abyan Dimas

Python for Data Science: Getting Started with Pandas

Data Analysis

Python is the king of data science, and Pandas is its crown jewel. If you are dealing with structured data (like Excel or SQL), you need Pandas.

What is a DataFrame?

Think of a DataFrame as a programmable spreadsheet.

import pandas as pd

data = {
  'Name': ['Alice', 'Bob', 'Charlie'],
  'Age': [25, 30, 35],
  'City': ['New York', 'Paris', 'London']
}

df = pd.DataFrame(data)

Filtering Data

Want to find everyone older than 28?

# Pure magic
seniors = df[df['Age'] > 28]
print(seniors)

Analyzing Data

Get quick statistics in one line:

df.describe()

Pandas allows you to clean, transform, and analyze millions of rows in seconds. It is an essential tool for any modern developer.

Share this article

Read Next