Data Analyst Role -

Getting the data

Parsing and cleaning the data

Doing the analysis

Building Models

Numpy : computing library -

Firstly we need to import numpy as it is a library. We can do this through the following :

import numpy as np

Basic Numpy Arrays -

Arrays allow us to hold data and work with it similarly to an CSV file. To create an array that is using the numpy library we can do the following things :

#Creates an array of items
np.array([1,2,3,4])

#passing a list to a variable
a = np.array([1,2,3,4])
b = np.array([0,2,12,0.4,2,1.2])

#Retrieving elements from a numpy array 
a[0], a[1]

#Retrieving from a certain element to the end or specific element
a[0:]
a[1:3]

#Creating a numpy array 
b[[0,2,-1]]