0% found this document useful (0 votes)
9 views14 pages

DEV output

Data and exploration

Uploaded by

mmonica0703
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views14 pages

DEV output

Data and exploration

Uploaded by

mmonica0703
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

RUnuMe IOOS Help All changes saved

+ Code + Text

Release note
Ds import numpy as np
arr=np.array[[L2,3], Please follow
14,2,5]]) and tricks, and
print("array iS of type:",type(arr)) Colab.
print(no. of dimensions:,
arr.ndim)
print("shape of array ,arr.shape) 2023-11-27
print("size of array ,arr.size) . Remov
print("array stores element of type",arr.dtype) " Added
Added
array is of type: <class 'numpy.ndarray'> Launch
no. of dimensions: 2 " Python
shape of array2, 3)
size of array:6
array stores element of type int64 Python

2023-11-08
" Launch
" FIXxed is
Python
9 WhatsAp X | Year_ AI8&DS_DEV_Record.pdf x o Welcome To Colaboratory - Cola X CO Untitled2.ipynb -Colaboratory
A https//colab.research.google.com/drive/1 cwFPo651 LqbPsVlybugMO0Jqu24zFhe
Untitled2.ipynb t E Comment Sha
File Edit View Insert Runtime Tools Help All changes saved
+ Code + Text RAM
Disk

A import numpy as np
a=np.array ([ [1, 2,3], [3,4,5].[4,5,6]])
print (a)
print("after slicing")
print(a[1:])
I[1 2 3]
[B 4 5]
[4 5 6]]
after slicing
[[B 4 5]
[4 5 6]]
VWhatsAPF IL Year Al&DS_DEV_R XCO Welcome To Colabor X 3Untitled2.ipynb - Col: XcO Copy of Untitled2.ipy Untitled3.ipynb - Col:
A httpsi//cola b.research.google.com/drive/1 R8TKI-vGWO3Mu
0IXSbOlaAKZ6Q-wyiej
CO Untitled3.ipynb t
File Edit View Insert Runtime Tools Help All changes saved Comment Share
+ Code + Text
RAM
Disk Colab AI

Ds import pandas as pd
lst-["", 'B', 'C', 'D', 'E', 'F', 'G']
df=pd.DataFrame (1st)
print (df)

1
2 C
D
4 E
5 F
6 G

X
completed at 10:55 AM
10:56 AM
n0)a ENG 16-12-23
O Tvpe here to search
3Welcome To Colabor X C0 Untitled2.ipynb - Col CO
+
Untitled3.ipynb -Col X CO Untitled4.ipynb-Col
A
https//colab.research.google.com/drive/1 mD43SERrSodWORvflgb318RSUR Njcod#scrollTo=4FxkyYSZF-KO
Untitled4.ipynb
File Edit View Insert Runtime Tools
Help All changes saved E Comment Share M
+ Code + Text
RAM
Disk Colab Al
import pandas as pd
data={'name':'tom','nick', 'krish','jack' ],
age':[20, 21,19, 18]}
df=pd.Data Frame (data)
print (df)

name age
tom 28
1 nick 21
2 krish 19
jack 18

X
V0s completed at 11:02 AM
11:02 AM
A)) a ENG 16-12-23
o Type here to search
C3Untitled4.ipynb -Col X
https//colab.research.google.com/drive/1 mD43SERrSodWORvf1gb3l8R5uR_NjCOd#scrol =4FxkyYSZF-KQ
To
X

Untitled4.ipynb
File Edit View Insert
Runtime Tools Help All changes saved
+ Code
E Comment Share
+ Text M

RAM
Disk Colab Al
import pandas as pd
data={' name':['tom', 'nick', 'krish', jack'],
'age':[ 20,21,19,18], ' adddress':'delhi', 'kanpur',
df=pd.DataFrame (data)
print (df) 'allahabad','kannauj'1,'qualification':['msc', 'MA', 'MCA', 'Phd']}
print (df[['name','qualification' 11)

E name age adddress qualification


oHN m tom 20 delhi
nick 21 kanpur MA
2 krish 19 allahabad MCA
jack 18 kannauj Phd
name qualification
tom msc
1 nick MA
2 krish MCA
jack Phd

V0s completed at 11:07AM


11:07 AM
A )a ENG 16-12-23
OTvpe here to search
3 Untitled2.ipynb CO Untitled3.ipynb XCo Untitled4.ipynb Co Untitled5.ipynb
A https://colab.research.google.com/drive/1 qUX9Z-aOBdbujMhDznFKWrBykRGm5GP5

& Untitled5.ipynb
File Edit View Insert Runtime Tools Help All changes saved E Comment Share M
+ Code + Text
RAM
Disk Colab AI

import pandas as pd
import numpy as np
dict={first score':[100,90, np.nan, 95],'scond score':[30,45,56,np.nan],third score':[np.nan, 40, 80,98|}
df-pd. DataFrame (dict)
df. isnull()

first score SCond ScOre third SCore

False False TFue

1 False False False


2 True False False
3 False Tue False

0s completed at 11:10AM 11:11AM


a)a ENG 16-12-23
CO
Hups:/ colab.research.google.com/drive/1qUX9Z-aOBdbujMhDznFKWrBykRGm 5GP5
Untitled5.ipynb
CO Untitled5.ipy X 63
Untitled6ipy X

File Edit View Insert


Runtime Tools Help All changes saved
+ Code + Text E Comment Share M

RAM
Disk Colab AI
import pandas as pd
import numpy as np
{} dict={first score': [100,90, np. nan,95], 'scond score':[30,45, 56,
df-pd.DataFrame (dict) np.nan],'third score':[np. nan, 40,80,98]}
df.dropna ()
first SCore Scond score third score
1 90.0 45.0 40.0

0s completed at 11:12AM 11:12 AM


AO) ENG 16-12-23

J Tvpe here to search


Untitled6.ipynb E Cormment O Share M
File Edit View Insert Runtime Tools Help All changes saved
RAM
+ Code + Text Disk Colab Al
plt.show)

my first graph
4.0

3.5

3.0
y-axis

2.5

2.0

15

0
125 150 1.75 2.00 2.25 2.50 2.75 3.00
100
XaXis

V 1S completed at 11 18AM 11:19 AM


a)a ENG 16-12-23

Type here to search


File Edit View Insert Runtime Tools Help All changes saved Comment D Share
+ Code + Text
RAM
=IparageU, ppr,o1 Disk Colab Al
y=np.sin(x)
plt. plot(x, y)
plt. shOw()

l.00

0.75

0.50

0.25

0.00

-0.25

-0.50

-0.75

-l.00
co
6 8

0s completed at 11:25AM
11:25 AN
a0)a ENG 16-12-2
Type here tosearch

DOLL
A https//colab.research.google.com/drive/1 ImeE71|XsOlPE_Td ScKDu4gU1p9 Bzawk
Untitled8.ipynb A
File Edit View Insert Runtime Tools E Comment Share M
Help All changes saved
+ Code + Text RAM
Disk Colab AI
plt.show()

sine and cosine


l.00

0.75

0.50

0.25

0.00

-0.25

-0.50

-0.75
SIne

-1.00 COsine

4 6 8
X-axis label

completed at 11:31 AM
X
Type here to search 11:32 AM
a)a ENG 16-12-23
Untitlet O Untitlec X
A https://colab.research.google.com/drive/1 ImeE7l)XsOlPE_TdScKDu4gU1 p9Bzawk#scrollTo=NxasUkBIOEmR
Untitled8.ipynb t
File Edit View Insert Runtime Tools Help Comment B Share
+ Code + Text RAM
Disk Colab Al
Ds X-[5,2,9,4, 7]
y-[10, 5, 8,4, 2]
plt. plot (x, y)
plt.show()

10

2 4 5 6

M0s completed at 11:35AM 11:35 AM


a) a g ENG 16-12-23
O Type here to search
Untitied8.i0Y
E Comment S
File Edit View Insert Runtime Tools Help All changes saved
+ Code + Text RAM
Disk

x=[5,2,9,4,7]
y=[10,5, 8,4, 2]
plt.bar(x,y)
plt.show()

10 -

3 4 5 7
2

0s completed at 11:35 AM
A)a EN
OTVpe here to search
WhatsA S II Year XcO Welco X 0 Untitlec X 0 Untitlec X C0 Untitlec x CO Untitlec XCO Untitlec
%C0Untitlec Co Untitler X
A
https://colab.research.google.com/drive/1 ImeE71)XsOlPE_TdScKDu4gU1p9Bzawk#scroll To =NxasUkBtOEmR
A Untitled8.ipynb
File Edit View Insert Runtime Tools Help All changes saved E Comment Share M

+ Code + Text RAM


Disk
Colab AI

y-[10, 5, 8,4, 2]
plt.hist(y)
(x} plt. show()

l.0

0.8

0.6

0.4

0.2

8 9 10
0.0 5 6 7 X
2
11:37 AM
0s completed at 11:36 AM A0)a ENG 16-12-23
Tear Welco C0 Untitlec X O Untitlec XCO Untitlec % C0 Unttlec X 63 Untitlec XCO Untitlec X CO Untitler
X
https//colab.research.google.com/drive/1 ImeE7ijXsOlPE_TdScKDu4gU1 p9 Bzawk#scrollTo=NxasUkBtOEm R
Untitled8.ipynb
File Edit View Insert Runtime Tools Help E Comnnent , Share M
+ Code + Text
RAM
Disk Colab AI
X=[5,2,9,4, 7]
y=[10,5, 8, 4, 2]
plt.scatter (x, y)
plt.show()

10

34

2 3 4 5 6 8
X
V0s completed at 11:37AM
11:37 AM
a)a ENG 16-12-23
o Type here to search

You might also like