from pandas import DataFrame,Series
import pandas as pd
obj = Series([-1,2,89,-4])
print obj
print obj.values
print obj.index
obj2 = Series([-2,3,6,78],index=['1','d','r','t'])
print obj2
print obj2.index
print obj2['d']
print obj2[obj2>0]
print obj2 *2
print 'b' in obj2
obj2.index.name = '123'
obj2.name = '321'
print obj2
0 -1
1 2
2 89
3 -4
dtype: int64
[-1 2 89 -4]
RangeIndex(start=0, stop=4, step=1)
1 -2
d 3
r 6
t 78
dtype: int64
Index([u'1', u'd', u'r', u't'], dtype='object')
3
d 3
r 6
t 78
dtype: int64
1 -4
d 6
r 12
t 156
dtype: int64
False
123
1 -2
d 3
r 6
t 78
Name: 321, dtype: int64