

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: What Is Pandas?
incomplete
2: Series
incomplete
3: DataFrames
incomplete
4: Derived Columns
incomplete
5: Series vs. DataFrame
incomplete
6: Filtering Data
incomplete
7: The Index in Pandas
incomplete
8: Custom Indexes
incomplete
9: Loading Data
incomplete
10: Inspect Head
incomplete
11: Info & Describe
incomplete
12: Inspecting Workflow
incomplete
13: Data Properties
incomplete
14: Inspecting Columns
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
A Series: in Pandas is a one-dimensional labeled array (like a single column from a table)
If we had a spreadsheet of player data from an RPG, where each row represented a player, and each column represented some attribute about the player, we could take any one of those columns as a Pandas Series. For example, a column representing each player's gold_earned:
import pandas as pd
gold_earned = pd.Series([150, 300, 75, 420])
print(gold_earned)
Prints:
0 150
1 300
2 75
3 420
dtype: int64
0, 1, 2, 3150, 300, 75, 420int64 (64-bit integer)You can access an individual value by its index:
print(gold_earned[0]) # 150
You may be thinking, "Isn't this just a list?" Kinda... but the Series structure has advantages, most importantly:
Series uses optimized C-array operations under the hood, so it can be much faster than the same operations on a regular Python list, especially at large sizes.Series isn't just ordered – it's labeled. That means you can manipulate data using custom labels instead of just integer positions. And if you perform an operation involving multiple Series, Pandas will automatically align the data based on the index labels.SnackStack tracks device telemetry data, including temperature readings from smart kitchen appliances. The analytics team needs to work with individual columns of data as Series to perform calculations.
Complete the get_temperature_stats function.