How to convert a Pandas Series to Python list? Last Updated : 28 Jul, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article, we will discuss how to convert a Pandas series to a Python List and it's type. This can be done using the tolist() method.Example 1: Python3 import pandas as pd evenNumbers = [2, 4, 6, 8, 10] evenNumbersDs = pd.Series(evenNumbers) print("Pandas Series and type") print(evenNumbersDs) print(type(evenNumbersDs)) print("\nConvert Pandas Series to Python list") print(evenNumbersDs.tolist()) print(type(evenNumbersDs.tolist())) Output: In the above example, we are passing Panda series data as evenNumbers . As index is not given, by default 0 is takenExample 2: Python3 import pandas as pd import numpy as np data = np.array(['ant','bat','cat','dog']) series = pd.Series(data,index=[100,101,102,103]) print(series) print(type(series)) print("\nConvert Pandas Series to Python list") print(series.tolist()) print(type(series.tolist())) Output: In the above example, we are passing Panda series data as np.array(['ant','bat','cat','dog']). Index as [100,101,102,103] Example 3: Python3 # Series from dictionary import pandas as pd import numpy as np marks = {'Maths' : 100., 'Physics' : 90., 'Chemistry' : 85.} series = pd.Series(marks) print(series) print(type(series)) print("\nConvert Pandas Series to Python list") print(series.tolist()) print(type(series.tolist())) Output: Example 4: Python3 # Get First 3 student marks and # convert as list import pandas as pd series = pd.Series([100, 90, 80, 90, 85], index=['Student1', 'Student2', 'Student3', 'Student4', 'Student5']) # retrieve the first three element print(series[:3]) print(series[:3].tolist()) print(type(series[:3].tolist())) Output: Comment More infoAdvertise with us Next Article How to convert a dictionary to a Pandas series? P priyarajtt Follow Improve Article Tags : Python Python-pandas Python pandas-series pandas-series-program Python Pandas-exercise +1 More Practice Tags : python Similar Reads How to convert a dictionary to a Pandas series? Let's discuss how to convert a dictionary into pandas series in Python. A series is a one-dimensional labeled array which can contain any type of data i.e. integer, float, string, python objects, etc. while dictionary is an unordered collection of key : value pairs. We use series() function of panda 2 min read Python | Pandas Series.to_csv() Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based indexing and provides a host of methods for performing operations involving the index. Pandas Series.to_csv() function write the g 3 min read Python | Pandas Series.astype() to convert Data type of series Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas astype() is the one of the most important methods. It is used to change data ty 2 min read Sort a Pandas Series in Python Series is a one-dimensional labeled array capable of holding data of the type integer, string, float, python objects, etc. The axis labels are collectively called index. Now, Let's see a program to sort a Pandas Series. For sorting a pandas series the Series.sort_values() method is used. Syntax: Se 3 min read Python | Pandas Series.to_dict() Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based indexing and provides a host of methods for performing operations involving the index. Pandas Series.to_dict() function is used to 3 min read Python | Pandas Series.to_json() Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based indexing and provides a host of methods for performing operations involving the index. Pandas Series.to_json() function is used to 2 min read Like