How is Series object different from and similar to ndarrays ? Support your answer with example.

Series can be called as enhanced Numpy 1D Array. Both Series and ndarray are 1D array and all the functions of ndarray works with Series object.

The main difference between Series object and ndarray is that –

Series has explicit index and ndarray has implicit index.

Ndarrays have always numeric index begins from 0 and Series object can have any type of index.

Vectorized operation can be performed on any size of Series object but not on ndarrays.

error: Content is protected !!