import numpy as npimport pandas as pdarray1=np.array([1,2,3,4])series1=pd.Series(array1,index=["jan","feb","mar","apr"])print(series1)
Standard input is empty
jan 1 feb 2 mar 3 apr 4 dtype: int64
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!