0% found this document useful (0 votes)
59 views4 pages

Python Functions and DataFrame Operations

Tel aviv university, version 1

Uploaded by

ariellerbrill
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)
59 views4 pages

Python Functions and DataFrame Operations

Tel aviv university, version 1

Uploaded by

ariellerbrill
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

j

dictionary
phonebook
example

RECURSION:
-base case -> smaller instances -> original problem
-stack overflow* .

CONDITIONAL STATEMENTS: FUNCTIONS:


-def function_ name (x, y):
-return: to use value calculated
by function, stops execution

LOOPS: *

take a
deep
#
breath.
4
--
I -

&-
2

return f"Name :
[Self . 3
name
,
Mass :
Sself . mass 3 "

TEST
EXAMPLES
PARTS 1-2

numpy
3
Morph by Neighborhood

Creating and Reading

Erosion and Dilation


Noise

Binary Segmentation
Noise No Overflow
1302
.
i.

Transpose M
Masking 2

Dark Noise No Overflow

Erosion Example:

: 2024 /Rand :NEI


Darken ↑

Squeeze & Threshold >


-
More Numpy :( #

Ternary Segmentation GOAL 1: Create a df (df_partial) that contains


the first, third, and fifth lines in df
option 1:
x=[1,3,5]
df_partial = df. iloc[x]
option 2: df_partial = [Link][[1,3,5]]
option 3: df_partial=[Link][1:7:2]
display(df_partial)
GOAL 2: fetch the last line from df_partial

sorts values in a defined columna


the rest of the columns do not move
but the order of them will change connect 3 dataframes

input: histogram
output: list of cumulative sums
S

histogram + cum_sum
-

: 245610 /RONN 1NdR

image gradient:

brightening image:

You might also like