SESSION 2

First we need to go inside the folder , those folder created in previous session

ex- In cmd -- cd Desktop (where you created )

cd mlops and then type jupyter notebook






HERE ALL CODE IS WRITTEN

l=[1,2,3,4]

type(l)

import numpy as np

a=np.array(l)

type(a)

a.dtype

name=['pop','eric','vimalsir']

type(name)

a1=np.array(name)

type(a1)

a1.dtype

name=[['shivam',1111],['vimalsir',2222],['pop',3333]]

type(name)

a2=np.array(name)

a2[:,1]

type(a2)

a2.dtype

a2.shape

x=[1,2,3,4,5,6,7,8,9]

a3=np.array(x)

a3.shape #1D

a3=a3.reshape(3,3)

a3

a3.shape #2D array

np.array([0,0,0,0,0])

np.zeros(50) #Return a new array of given shape and type, with zeros.

np.zeros((5,5))

np.zeros((5,5)) + 5.7

y=[10,4,6,9,3,5]

s1=np.array(y)

s1

s1+10

s1*5

SESSION IS NOT COMPLETED