Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Series | The Very First Steps
Pandas First Steps
course content

Course Content

Pandas First Steps

Pandas First Steps

1. The Very First Steps
2. Reading Files in Pandas
3. Analyzing the Data

book
Series

One of the simplest data structures in pandas is pd.Series. This structure resembles a list or an array. To create a pd.Series object in pandas, you can utilize the pd.Series() function.

12345
import pandas as pd numbers = [17, 43, 74, 20] series = pd.Series(numbers) print(series)
copy

In this example, we're leveraging the pd.Series() function to create a data object of the Series type, into which we place a list of numbers.

Task
test

Swipe to show code editor

Your task is to create two pd.Series objects from two existing lists, data_1 and data_2.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 2
toggle bottom row

book
Series

One of the simplest data structures in pandas is pd.Series. This structure resembles a list or an array. To create a pd.Series object in pandas, you can utilize the pd.Series() function.

12345
import pandas as pd numbers = [17, 43, 74, 20] series = pd.Series(numbers) print(series)
copy

In this example, we're leveraging the pd.Series() function to create a data object of the Series type, into which we place a list of numbers.

Task
test

Swipe to show code editor

Your task is to create two pd.Series objects from two existing lists, data_1 and data_2.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 2
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt