API · Pandas
Pandas Series.tolist() Function
The Series.tolist() method returns the Series values in a Python list.
On this page
Series.tolist() returns the values of a pandas Series in a Python list. Call it with no arguments: series.tolist(). This is useful when passing values to code that expects a regular list or when you want to inspect the values without the Series display format.
Convert a Series to a list
Call the method on the Series object and keep its return value. The call does not modify the original Series:
values = series.tolist()
The method takes no parameters. Its result is a Python list containing the Series values in their existing order. The returned list is a separate container, so changing the list does not change the Series. The values themselves follow their normal Python behavior; for mutable objects, both containers can still refer to the same objects.
Understand the returned list
A Series has more structure than a list. Its index labels and dtype describe the Series, but tolist() returns the values only. It does not include index labels as list entries, and a Python list has no pandas dtype. Use a separate operation if you also need the labels, or retain the Series when downstream code depends on its index or pandas-specific behavior.
The list length matches the number of Series values, including values that represent missing data. The values appear in Series order. Pandas may choose a dtype for the Series when it is created, so numeric values can already have been coerced before conversion; tolist() reflects the values held by that Series rather than restoring the original input types.
Convert numeric and string Series
Run this example:
import pandas as pd
scores = pd.Series([88, 91, 76], index=["Mia", "Noah", "Ava"])
names = pd.Series(["Rose", "Jasmine", "Tulip"])
score_list = scores.tolist()
name_list = names.tolist()
print(score_list)
print(name_list)
print(isinstance(score_list, list))
print(score_list == [88, 91, 76])
[88, 91, 76]
['Rose', 'Jasmine', 'Tulip']
True
True
Both calls use the same no-argument method. The numeric Series has labels, but its converted list contains only its values. The string Series produces a list of strings in their original order.
Check the result in Python
Use isinstance(result, list) when later code requires a list, and compare result with the expected values when checking content. The example checks both: the type check confirms the container, while the equality check confirms the numeric values and their order. You can apply the same checks to name_list, for example by comparing it with ['Rose', 'Jasmine', 'Tulip'].
If the result differs from what you expect, inspect the Series before conversion with print(series) and check its index and dtype. That helps distinguish values already changed when the Series was constructed from anything that happened during conversion. For a quick conversion, the essential call remains Series.tolist(); assign its result when you need to validate it or pass it to another function.