Series
Swipe to show menu
The simplest pandas object is Series - one-dimensional ndarray (numpy array) with axis labels.
To create a series in pandas, use pd.Series() method (capital S), passing list/array of values as the parameter.
123456# Importing library import pandas as pd # Creating pandas series ser = pd.Series([1000, 2500, 1700]) print(ser)
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 2
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
SectionΒ 1. ChapterΒ 2