Skip to main content
Brave Programmer Logo

BraveProgrammer

BraveProgrammer

HomeProjectsBlogsCoursesLessonsAbout

Site footer

BraveProgrammer

Free coding courses, practical tutorials, and real projects from BraveProgrammer. Learn web development with React, Next.js, and TypeScript.

Navigation

  • Home
  • Projects
  • Blogs
  • Courses

Resources

  • About
  • Lessons
  • Teach on BraveProgrammer

© 2026 BraveProgrammer. All rights reserved.

Series: The One‑Dime | Master Data Science with Python lesso | BraveProgrammer
  1. Courses
  2. /
  3. Master Data Science with Python

Lesson 17 of 60

·python

Series: The One‑Dimensional Pandas Object

15 minutes

Course progress28%

Series Deep Dive

A Series is essentially a labeled array.

Creating Series from different sources

# From a list
s1 = pd.Series([100, 200, 300])

# From a dict (keys become index)
prices = {'apple': 0.99, : , : }
s2 = pd.Series(prices)
(s2)
'banana'
0.5
'cherry'
2.5
print

Accessing elements

print(s2['banana'])   # 0.5
print(s2.iloc[0])     # 0.99 (positional)

Vectorized operations

print(s2 * 1.1)   # increase all prices by 10%

Handling missing data in Series

s3 = pd.Series([1, None, 3])
print(s3.isna())
print(s3.fillna(0))

Info

Series is a handy wrapper when you need a single column with custom indexing.
Make it stickPractice what you've learned1 quiz · 4 practical tests · Optional activities from Master Data Science with PythonBrowse activities
Previous lessonIntroduction to PandasContinue to lesson 18DataFrames: Tabular Data in PandasBack to Master Data Science with Python curriculum