30 July 2020
Code
# Import library
import pandas as pd
# Create a Series
x = pd.Series([1,2,3], index=['a','b','c'])
# Output
print(x)
print(type(x))
Output
a 1
b 2
c 3
dtype: int64
<class 'pandas.core.series.Series'>
Any errors in code above?
Please send a message.