Introduction to Series Data Structure in Pandas Library
Series is one of the fundamental data structures of the Pandas Library which is built on top of NumPy Library. Series is actually is one dimensional labelled array object similar to list, dict or column of a table. Series object which can hold any data forms (i.e. Python dict, ndarray and scalar values e.g. 5) will assign labelled index to each item in its Series. And by default each item of a Series will be assigned index labels from 0 to (N-1) , where N is total number of Series items. How to create a Series data structure? Using Pandas library, we can create Series using the following constructor highlighted below; s = pandas.Series(data, index, dtype) From the above line of code, we used parameters as arguments to Series functions defined below; data may be of any form (i.e. Python dict, ndarray and scalars) that we store it as contents or items of Series index is the list of unique axis labels equal to the length of data. If the index labels is not defi