Upyter Notebook1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

In 

[1]:

import numpy as np

In [4]:

arr = np.arange(1,16)

In [5]:

arr

Out[5]:

array([ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15])

In [7]:

arr.shape

Out[7]:

(15,)

In [13]:

arrn = arr.reshape(3,5)
arrn

Out[13]:

array([[ 1, 2, 3, 4, 5],
[ 6, 7, 8, 9, 10],
[11, 12, 13, 14, 15]])

In [14]:

arrn[1:, 2:4]

Out[14]:

array([[ 8, 9],
[13, 14]])
In [18]:

np.linspace(1,10,100)

Out[18]:

array([ 1. , 1.09090909, 1.18181818, 1.27272727, 1.36363636,


1.45454545, 1.54545455, 1.63636364, 1.72727273, 1.81818182,
1.90909091, 2. , 2.09090909, 2.18181818, 2.27272727,
2.36363636, 2.45454545, 2.54545455, 2.63636364, 2.72727273,
2.81818182, 2.90909091, 3. , 3.09090909, 3.18181818,
3.27272727, 3.36363636, 3.45454545, 3.54545455, 3.63636364,
3.72727273, 3.81818182, 3.90909091, 4. , 4.09090909,
4.18181818, 4.27272727, 4.36363636, 4.45454545, 4.54545455,
4.63636364, 4.72727273, 4.81818182, 4.90909091, 5. ,
5.09090909, 5.18181818, 5.27272727, 5.36363636, 5.45454545,
5.54545455, 5.63636364, 5.72727273, 5.81818182, 5.90909091,
6. , 6.09090909, 6.18181818, 6.27272727, 6.36363636,
6.45454545, 6.54545455, 6.63636364, 6.72727273, 6.81818182,
6.90909091, 7. , 7.09090909, 7.18181818, 7.27272727,
7.36363636, 7.45454545, 7.54545455, 7.63636364, 7.72727273,
7.81818182, 7.90909091, 8. , 8.09090909, 8.18181818,
8.27272727, 8.36363636, 8.45454545, 8.54545455, 8.63636364,
8.72727273, 8.81818182, 8.90909091, 9. , 9.09090909,
9.18181818, 9.27272727, 9.36363636, 9.45454545, 9.54545455,
9.63636364, 9.72727273, 9.81818182, 9.90909091, 10. ])

In [20]:

np.random.rand(5,5)

Out[20]:

array([[0.61306822, 0.17698481, 0.71785227, 0.43969079, 0.49994142],


[0.94488919, 0.84534691, 0.29423969, 0.6213327 , 0.37186343],
[0.42799764, 0.36969314, 0.39578053, 0.30679081, 0.00334471],
[0.63208725, 0.70483269, 0.48639385, 0.54021057, 0.8614404 ],
[0.21086203, 0.01418887, 0.64859238, 0.28407155, 0.9309286 ]])
In [23]:

np.zeros((3,3),dtype=int)

Out[23]:

array([[0, 0, 0],
[0, 0, 0],
[0, 0, 0]])
In [1]:

!pip install Pyppeteer

Collecting Pyppeteer
Downloading pyppeteer-1.0.2-py3-none-any.whl (83 kB)
Requirement already satisfied: certifi>=2021 in c:\users\krish\anaconda3\l
ib\site-packages (from Pyppeteer) (2022.12.7)
Requirement already satisfied: appdirs<2.0.0,>=1.4.3 in c:\users\krish\ana
conda3\lib\site-packages (from Pyppeteer) (1.4.4)
Collecting websockets<11.0,>=10.0
Downloading websockets-10.4-cp38-cp38-win_amd64.whl (101 kB)
Collecting pyee<9.0.0,>=8.1.0
Downloading pyee-8.2.2-py2.py3-none-any.whl (12 kB)
Requirement already satisfied: tqdm<5.0.0,>=4.42.1 in c:\users\krish\anaco
nda3\lib\site-packages (from Pyppeteer) (4.62.3)
Requirement already satisfied: importlib-metadata>=1.4 in c:\users\krish\a
naconda3\lib\site-packages (from Pyppeteer) (4.8.2)
Requirement already satisfied: urllib3<2.0.0,>=1.25.8 in c:\users\krish\an
aconda3\lib\site-packages (from Pyppeteer) (1.26.8)
Requirement already satisfied: zipp>=0.5 in c:\users\krish\anaconda3\lib\s
ite-packages (from importlib-metadata>=1.4->Pyppeteer) (3.7.0)
Requirement already satisfied: colorama in c:\users\krish\anaconda3\lib\si
te-packages (from tqdm<5.0.0,>=4.42.1->Pyppeteer) (0.4.4)

WARNING: Ignoring invalid distribution -tatsmodels (c:\users\krish\anacond


a3\lib\site-packages)
WARNING: Ignoring invalid distribution -tatsmodels (c:\users\krish\anacond
a3\lib\site-packages)
WARNING: Ignoring invalid distribution -tatsmodels (c:\users\krish\anacond
a3\lib\site-packages)
WARNING: Ignoring invalid distribution -tatsmodels (c:\users\krish\anacond
a3\lib\site-packages)
WARNING: Ignoring invalid distribution -tatsmodels (c:\users\krish\anacond
a3\lib\site-packages)
WARNING: Ignoring invalid distribution -tatsmodels (c:\users\krish\anacond
a3\lib\site-packages)

Installing collected packages: websockets, pyee, Pyppeteer


Successfully installed Pyppeteer-1.0.2 pyee-8.2.2 websockets-10.4
WARNING: Ignoring invalid distribution -tatsmodels (c:\users\krish\anacond
a3\lib\site-packages)
In [ ]:
WARNING: Ignoring invalid distribution -tatsmodels (c:\users\krish\anacond
a3\lib\site-packages)
WARNING: Ignoring invalid distribution -tatsmodels (c:\users\krish\anacond
a3\lib\site-packages)

You might also like