Back to Course
Data Intelligence: NumPy & Pandas
Module 5 of 15
5. Pandas Series
1. Labeled Data
A Series is a NumPy array with an Index.
- NumPy: Accessed by integer position (0, 1, 2...).
- Series: Accessed by label ('Apple', 'Microsoft'...).
pythonimport pandas as pd s = pd.Series([100, 200], index=['AAPL', 'GOOG']) print(s['AAPL']) # 100
2. Time Series
Pandas was built for Wall Street. It handles dates natively.
python# Automatic Date Ranges dates = pd.date_range('20240101', periods=6)