1.

What is series? Explain with the help of an example. 

Answer»

Pandas Series is a one-dimensional labeled array capable of holding data of any type (integer, string, float, python objects, etc.). The axis labels are collectively called index. Example import pandas as pd 

 # simple array 

data =pd.series([1,2,3,4,5])

print data



Discussion

No Comment Found

Related InterviewSolutions