<human>:  how to covert a data set to series in pandas.
<bot>:

# Calling the function
print((to_series(data)))

#Example Output

# 0  1
# 1  2
# 2  3
# dtype: int64

#Remember to inspect code for bugs.