Convert a Python list to a pandas Series

A Python list is converted to pandas Series as follows.

import pandas

x = [3, 4, 5, 6, 7]

a = pandas.Series(x)

print(a)
# 0    3
# 1    4
# 2    5
# 3    6
# 4    7
# dtype: int64

pandas Series

pandas tutorial