Midterm Review: Data Selection, Manipulation, and Classes in Python, Exams of Statistics

A midterm review for a course on data manipulation and classes in python. It covers topics such as data selection using pandas, list comprehension, image operations, function argument passing, basic operators, class usage, loops, and concepts in machine learning. It also includes examples and exercises for better understanding.

Typology: Exams

2020/2021

Uploaded on 03/21/2024

praveen-ravisankar
praveen-ravisankar 🇺🇸

1 document

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Midterm
Review
1.
data
selection
in
Pandas
rows
y
Ies
"
non
)
@qmm.a
!
:
2)
df
[
column
label
]
columns
w
f
simple
,
fancy
E
.
.
.
]
3)
HEEL
labels
;
labels
]
simple
.
fancy
,
slicing
inclusive
4)
defiled
index
,
index
]
simple
,
fancy
,
slicing
be
careful
about
index
of
ur
2
.
variable
(
name
)
assignment
-
"
EEE
!
Esso
a==5
!
pf3
pf4
pf5

Partial preview of the text

Download Midterm Review: Data Selection, Manipulation, and Classes in Python and more Exams Statistics in PDF only on Docsity!

Midterm Review

  1. data^ selection in Pandas rows

y Ies

" (^) non ) @qmm.a

2) df^

[column^ label] columns w f

simple , fancy E^.^.. ]

  1. HEEL^ labels (^) ; labels]

simple. fancy , slicing inclusive

  1. defiled^

index, index ]

simple ,^ fancy , slicing be^ careful about^ index^ of

ur

  1. variable (name) assignment ④
  • ⑤ " EEE!^ ④ Esso ⇒ (^) a== !

y

a- Enid

! I^

→ x f- a , (^) If -^

'D

b[o]=l0 (^) I ⇒ (^) a⇒[10,23] ' I ✓ (^34) A-E.^ 2,3] i f- a '

IZ -54,

] beaches " :3.az :

BED -^ lo^

' ; ⑦ (^) → (^) IX.2. (^3) ] ⇒ A→[I^ ,^ 2,3]^ I^ 10 m t (^) C

A- Marray fuzzy^ ,

; Python ✓

b=amn (^) yAa→a④¥Exo oh -_^ a^ slicing

think

I (^) HI¥a④T b (^) -67-10 I. ⇒ at^ array tho,^ 2,37)^! MT (^) ,

  1. list^ comprehension , range type^ of^ list range tied^ → (^) type of range.^ listlrangec^
  1. (^) [

fieeoforxinttifgcx,^ ]

7. class

basic usage ,^ be^ careful^ in^ calculation f,

  • → 3£ (^) -5*- fz -^
  • x' -3×+ THAI -32×2-8*+
  1. (^) loop for,^ while^ ) be (^) patient, write every iteration (^) on

paper!

2=5 while after

while (^) # B- →^4 K=x- I 4 → (^3) 3 →^ z 2-

  1. list^ comprehension # hoop 1st =^ [ (^) fog (^) fork in (^) A if (^) § ]

1st E^ )^ boolean

{

for kink^

: if Ya! append HAD

10 ,^ basic^ Humpy → exclusive

  • (^) creation - np, (^) arrange Gert , end ,^ step) / M?^ zeros^ ( (^) ) (^) strap lip np.^ lins^ pace Gert, -qd,^ - " operator function , Honshu (^) by

default

  1. Lte^ #t^ , ⑨ her un

2) Eif. →Minin

a¥s(

whet if there's no axis argument)

11.^ data^ representation

Mxn (^) grey scale^ →^ Rmxn RGB →^ Rmxnx^ 3 N

    • -^.^ →^ RNXMXN f) .ph#xnx3-
  1. concepts^ in^ ML

supervised

regression (^) y cont^ . classification y disrate unsupervised (^) f dimension reduction

IEE

clustering