Python Programming
Exclusively for Python beginners.
NumPy and Pandas
Python data handling is all about NumPy, and Pandas.
Installation
import numpy or import numpy as np #np is an identifier
Example
import numpy as np #np.functionName List = [1,2,3,4,5] a1 = np.array(List) #This will create a NumPy array from the given list print(a1)
Inside Memory
Indices 0 1 2 3 4
Data [1] [2] [3] [4] [5] #a1[0] will fetch 1, a1[2] will fetch 3 and so on
Output
The statement 'print(a1)' will display the following result.
[1,2,3,4,5]