100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary Python Data Science Toolbox

Rating
-
Sold
-
Pages
145
Uploaded on
22-06-2022
Written in
2021/2022

User-defined functions Multiple Parameters and Return Values Scope and user-defined functions Nested functions Default and flexible arguments Lambda functions Introduction to error handling Introduction to iterators Playing with iterators Using iterators to load large files into memory List comprehensions Advanced comprehensions Introduction to generator expressions Wrapping up comprehensions and generators Using Python generators for streaming data Using pandas' read_csv iterator for streaming data Basics Cheat Sheet

Show more Read less
Institution
Course











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Course

Document information

Uploaded on
June 22, 2022
Number of pages
145
Written in
2021/2022
Type
Summary

Subjects

Content preview

User-defined
functions
P Y T H O N D ATA S C I E N C E T O O L B O X ( PA R




Hugo Bowne-Anderson
Instructor

,You’ll learn:
De ne functions without parameters

De ne functions with one parameter

De ne functions that return a value

Later: multiple arguments, multiple return values

,Built-in functions
str()

x = str(5)


print(x)


'5'


print(type(x))


<class 'str'>

, Defining a function
def square(): # <- Function header
new_value = 4 ** 2 # <- Function body
print(new_value)
square()


16
$5.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
tomdebaes

Get to know the seller

Seller avatar
tomdebaes Debatrans
Follow You need to be logged in order to follow users or courses
Sold
1
Member since
3 year
Number of followers
1
Documents
43
Last sold
3 year ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions