Data Science, Statistics

Pandas and Numpy

Pandas is built on top of NumPy, relying on ndarray and its fast and efficient array based mathematical functions.Pandas relies on NumPy data types for the entries in the DataFrame.A DataFrame is composed of multiple Series. The DataFrame class resembles a collection of NumPy arrays but with labeled axes and mixed data types across the columns. In fact, Series is subclass of NumPy’s ndarray. While you can achieve the same results of certain pandas methods using NumPy, the result would require more lines of code. Pandas expands on NumPy by providing easy to use methods for data analysis to operate on the DataFrame and Series classes, which are built on NumPy’s powerful ndarray class

Leave a Reply