A Series is a one-dimensional labeled array capable of holding any data type (integers, strings, floating point numbers, Python objects, etc.). It has to be remembered that unlike Python lists, a Series will always contain data of the same type.
Let’s see how to create a Pandas Series from lists.
Method #1 : Using Series() method without any argument.
import pandas as pd
x = pd.Series(['Geeks', 'for', 'Geeks'])
print(x)
|
Output :

Method #2 : Using Series() method with 'index' argument.
import pandas as pd
x = pd.Series([10, 20, 30, 40, 50], index =['a', 'b', 'c', 'd', 'e'])
print(x)
|
Output :

Another example:
import pandas as pd
ind = [10, 20, 30, 40, 50, 60, 70]
lst = ['Geeks', 'for', 'Geeks', 'is',
'portal', 'for', 'geeks']
x = pd.Series(lst, index = ind)
print(x)
|
Output:

Method #3: Using Series() method with multi-list
import pandas as pd
list = [ ['Geeks'], ['For'], ['Geeks'], ['is'],
['a'], ['portal'], ['for'], ['geeks'] ]
df = pd.Series((i[0] for i in list))
print(df)
|
Output:

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!