Series to list
Write a pandas program to convert a Series to a list and print its type.
[15, 43, 88] list
Approach
tolist().
Solution
import pandas as pditems = pd.Series([15, 43, 88]).tolist()print(items, type(items).__name__)[15, 43, 88] list
Learn the concept
New to this topic? Read the lesson, then come back.