Basic Functionality of the Pandas Series  

  • Attribute or Method in a Pandas series object:

    • axes = the list of the row axis labels

    • dtype = the data type of the object stored in the series.

    • empty = True if the series is empty.

    • ndim = the # dimensions of the underlying data , by definition = 1.

    • size = the # elements in the underlying data (= length of array).

    • values = returns the series as an ndarray.

    • head(n) = returns the first n rows (default n = 5).

    • tail(n) = returns the last n rows (default n = 5).

DEMO: progs/series06.py