import pandas as pd a = [1,7,2]myvar = pd.Series(a, index = ['x','y','z'])print(myvar['x'])print(myvar['y'])print(myvar['z'])
Standard input is empty
1 7 2
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!