To summarize this chapter, numpy.ndarray
is the bedrock data structure on which the pandas data structures are based. The pandas data structures at their heart consist of NumPy ndarray
of data and an array or arrays of labels.
There are three main data structures in pandas: Series, DataFrame, and Panel. The pandas data structures are much easier to use and more user-friendly than Numpy ndarrays
, since they provide row indexes and column indexes in the case of DataFrame and Panel. The DataFrame object is the most popular and widely used object in pandas. In the next chapter, we will cover the topic of indexing in pandas.