>>> import pandas as pd
>>>
>>> a = pd.Series(['a','b','c'])
>>> print(a)
0 a
1 b
2 c
dtype: object
>>> print(type(a))
<class 'pandas.core.series.Series'>
>>> print(a.index)
RangeIndex(start=0, stop=3, step=1)
>>>
>>> a = pd.Series(['a','b','c'], index = ['a1','b2','c3'])
>>> print(a)
a1 a
b2 b
c3 c
dtype: object
>>> print(a.index)
Index(['a1', 'b2', 'c3'], dtype='object')
>>>
>>>
>>> a = pd.Series({'a1':'a',' b1':'b', 'c1': 'c'})
>>> print(a)
a1 a
b1 b
c1 c
dtype: object
>>> print(a.index)
Index(['a1', ' b1', 'c1'], dtype='object')
>>>