Partial Functions in Python - Functools Tutorial

preview_player
Показать описание
In this video we learn how to create partial functions from other functions using the functools libary.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

🌐 Social Media & Contact 🌐

Timestamps:
(0:00) Intro
(0:16) Creating Partial Functions Manually
(4:48) Functools Partial
(7:13) Stock Market Example
(13:38) Outro
Рекомендации по теме
Комментарии
Автор

At last a video that explains Partial Function Application in simple terms. It took me about 2 hours to find a definition / explanation that made any sense. Thanks !

charly
Автор

I really like your videos. I‘ve learned so much about programming. I modified you Advanced TCP Chat script and it works pretty well but I‘d like to know how I can implement an End-To-End encryption to it. Go on with this content man 👍

fallcrim
Автор

Keeping going mate. These regular videos are great. Appreciate the effort you put 💯

shahbazzaidi
Автор

Great video. This concept is known as currying functions created by Haskell Curry.

ryanbradbury
Автор

Why not use default parameters instead of partial function?

hari
Автор

hi. i have a question.
class A:
def __init__(self, x):
self.x = x

def __call__(self):
if self.x == 1:
return something
elif self.x == 2:
return something_else
..
.. and so on.
i dont want to use if-else since it will wadte time checking self.x which will be fixed at init time. how can overload call method based on initial value of x?
i would call this many times in a loop so i want it to avoid repetitive computation. plz help

TheThunderSpirit
Автор

i don t understand how you find target like apple or golman sax....if i search for tcgmarket, sony or fnac or something like that where i find the stock to try the code

tcgvsocg
Автор

I copied your code and had this error : TypeError: string indices must be wrong ?

garychung
Автор

When you use the partial func on a function. Is that considered arbitrary function?

chriskeo
Автор

Hey, nice video thanks you, i forgot about this i already seen a video about this time ago.
I have a question also, its about the pandas_datareader, i am french and idk what is a ticker i searched it up in a dictionary and i dont see anything that make me think of a company figure of any kind, may someone say me more about it please? Look like its more for my culture than code knowledge ofc

obed
Автор

👍. Very nice content.
Can make a road map to learn AI for beginners

javohirsayfullayevich
Автор

13:21 > _"imagine a function with a thousand lines of codes"_

😱😳👁👁 jk

yash