Numpy and pandas are very popular packages used for data analysis. this post provide you quick guide to learn the basics of these. We assume you are familiar with vector operation .
Numpy is mostly written in C & pandas are written over numpy & also uses C programming language as core implementation So these two are fast as compare to general data structure provided with python.
Numpy array is similar to python list but it contain all data of same data-type & it is much faster.
we can also treat numpy array as a vector.
Pandas uses scalar instead of list or numpy array but we can also visualize it as numpy array with some advance functionalities.
Example
Numpy uses array whereas pandas used scaler
In [2]:
import numpy as np
Array are similar to python list , but it all element must be of same data type, and it faster than list¶
In [13]:
num = np.array([3,4,2,5,7,23,56,23,7,23,89,43,676,43])
num
Out[13]: