Python Learning Journey

15 Days Learning Challenge

Day 1 - Inspecting & Summarizing Data

Introduction

Today I learned how professional data analysts inspect datasets before cleaning, transforming, or visualizing data. Understanding the structure of data is the first step of every analytics project.

Sample Retail Dataset

Date Product Quantity Price
2023-12-02 Tea 4 40
2025-05-20 Coffee 2 40
2024-10-03 Tea 3 30
2022-11-01 Coffee 5 100
2026-01-05 Tea 10 100

Create DataFrame

import pandas as pd

sales_data = {
 'date':['2023-12-02','2025-05-20','2024-10-03','2022-11-01','2026-01-05'],
 'product':['tea','coffee','tea','coffee','tea'],
 'quantity':[4,2,3,5,10],
 'price':[40,40,30,100,100]
}

df = pd.DataFrame(sales_data)

Functions Learned

df.info()

df.info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 5 entries, 0 to 4
date       5 non-null object
product    5 non-null object
quantity   5 non-null int64
price      5 non-null int64

df.shape

df.shape
(5,4)

df.columns

Index(['date','product','quantity','price'])

df.dtypes

date object
product object
quantity int64
price int64

df.head()

df.head(2)

df.tail()

df.tail(2)

df.describe()

Returns count, mean, std, min, max and quartiles.

unique() & nunique()

df['product'].unique()
df['product'].nunique()

Real World Use Case

Suppose a company sends a sales file containing 50,000 rows. Before building a Power BI dashboard or performing SQL analysis, a data analyst first checks:

  • Dataset shape
  • Column names
  • Data types
  • Missing values
  • Summary statistics
  • Unique categories

This process helps identify data quality issues early and saves hours of debugging later.

Key Takeaways

✅ Understanding DataFrame structure

✅ Inspecting rows and columns

✅ Checking datatypes

✅ Using describe() for summaries

✅ Finding unique values

✅ Building the foundation for future data analysis

Day 2

Coming Soon

Content for Day 2 will be added later.

Day 3

Coming Soon

Content for Day 3 will be added later.

Day 4

Coming Soon

Content for Day 4 will be added later.

Day 5

Coming Soon

Content for Day 5 will be added later.

Day 6

Coming Soon

Content for Day 6 will be added later.

Day 7

Coming Soon

Content for Day 7 will be added later.

Day 8

Coming Soon

Content for Day 8 will be added later.

Day 9

Coming Soon

Content for Day 9 will be added later.

Day 10

Coming Soon

Content for Day 10 will be added later.

Day 11

Coming Soon

Content for Day 11 will be added later.

Day 12

Coming Soon

Content for Day 12 will be added later.

Day 13

Coming Soon

Content for Day 13 will be added later.

Day 14

Coming Soon

Content for Day 14 will be added later.

Day 15

Coming Soon

Content for Day 15 will be added later.

Want to Explore More of My Learning Journey?

Visit my portfolio to explore projects, certifications, blogs, dashboards, and skills I've developed throughout my Data Analytics journey.

← Back to Home