Course Content
Pandas First Steps
Pandas First Steps
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.
import pandas as pd numbers = [17, 43, 74, 20] series = pd.Series(numbers) print(series)
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
Your task is to create two pd.Series
objects from two existing lists, data_1
and data_2
.
Thanks for your feedback!
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.
import pandas as pd numbers = [17, 43, 74, 20] series = pd.Series(numbers) print(series)
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
Your task is to create two pd.Series
objects from two existing lists, data_1
and data_2
.
Thanks for your feedback!
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.
import pandas as pd numbers = [17, 43, 74, 20] series = pd.Series(numbers) print(series)
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
Your task is to create two pd.Series
objects from two existing lists, data_1
and data_2
.
Thanks for your feedback!
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.
import pandas as pd numbers = [17, 43, 74, 20] series = pd.Series(numbers) print(series)
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
Your task is to create two pd.Series
objects from two existing lists, data_1
and data_2
.