This is great. I always found these functions confusing, but you have explained them so clearly, I am going to use them extensively in my coding. Thanks a lot.
I"ve seen many videos about this topic, but this is, BY FAR, the BEST. Not only the pace was the adecuate fir beginners like me, but it was also full of examples and alternatives. Thanks for publishing this video. Thumbs up thumbs ☝!!
Wow ... that's so simplified!!! I finally got someone who me me see all of them at once in a simplified manner along with how they can be used together. Thanx Joe!!!
Joe, you just helped me understand Lambda and other functions. This will be the easiest explanation I have seen so far. (a week into Python programming)
Small mistake at 5:20, the map function would only work if square was defined as def square(num): return num**2 since the parameter would need to be a number, not a list.
so easy to follow, great job! for the last part: i think the code needs to be updated and import functools import functools print(functools.reduce(lambda x,y:x*y,n))
Subbed. Don't know why RUclips hasn't brought me to your channel before. Your explanation helped me understand three functions (two of which I hadn't even heard of) that I didn't understand before. Thank you.
Well explained! I started learning Python 4 days ago on Treehouse, but still, with this explanation I managed to make my first lambda functions work in one go.
Explanation was outstanding....crisp, clean and clear... Watched some of the videos but i found them vague... Contented after watching this ...cheers ..and Yes...Subscribed 😊
Thank you for the explanation. Just a correction at 5:24 . You cannot pass the square function as-is to the map along with the list. The map is expecting individual items. Not the list itself.
At 5:00 you can’t use the square function with map there. Since map takes on element from the list a time, and then applies the square function to it, *but* the square function is written to deal with an entire list not a single element.
Word of correction about 3:10 you’re saying that map returns a list. This is not true, it returns an iterator which may or may not be converted into a list. This is why we use list(map(func, [])) to convert a map output to a list.
Superb explanation Joe!! I have always confused with Map filter reduce and list comprehension concepts !!! I am very much clear now exactly when to use them.
you use map function when you need to pass a function on variables, and use filter when you need to pass a condition on all elements and get the elements which hold true for it
Excellent video! What I don't understand is how does the map and reduce function in python have anything to do with Hadoop's map and reduce? how are they related?
Hi Joe, Thanks for the video. All the examples you have you given here from memory. My question: How we can work with a large CSV file?[File management ]
Dang, I covered that in my Java Streams video, but not the Python one. Actually, I think I have two Python Map Reduce videos. There may be a link in comments. I don’t remember if I covered file IO in the other one. I also have a couple Python videos just on file IO, including CSV.
When you create a list comprehension or Lambda function does python assign a default variable name to the newly created list? The def function allows this.
Finally, someone who actually explained this quite elegantly and simply.
This is great. I always found these functions confusing, but you have explained them so clearly, I am going to use them extensively in my coding. Thanks a lot.
bhali karay ayo
same, great video!
I"ve seen many videos about this topic, but this is, BY FAR, the BEST. Not only the pace was the adecuate fir beginners like me, but it was also full of examples and alternatives. Thanks for publishing this video. Thumbs up thumbs ☝!!
Wow ... that's so simplified!!! I finally got someone who me me see all of them at once in a simplified manner along with how they can be used together. Thanx Joe!!!
You're so welcome!
EXCELENTE: GOOD EXPLANATION. BETTER THAN MY TEACHER, AT COLLEGE.
I have an interview coming and needed a refresher. Thank you.
See mine too.
How’d your interview go?
Joe, you just helped me understand Lambda and other functions. This will be the easiest explanation I have seen so far. (a week into Python programming)
I took this lesson in a paid online course and didn't make any sense. I watched this video and it's crystal clear now.
Thank you Sir!
this is easiest way to teach complex method...Thank You!!!
Small mistake at 5:20, the map function would only work if square was defined as
def square(num):
return num**2
since the parameter would need to be a number, not a list.
That approach was meant to be equivalent to the _whole_ thing on the right, not just to the lambda function ;)
def square(lst1=[]):
@@juliuskamara1348didn't work
Very clear and precise explanation that anyone should be able understand.
so easy to follow, great job!
for the last part: i think the code needs to be updated and import functools
import functools
print(functools.reduce(lambda x,y:x*y,n))
I couldn't agree more with you!
Subbed. Don't know why RUclips hasn't brought me to your channel before. Your explanation helped me understand three functions (two of which I hadn't even heard of) that I didn't understand before. Thank you.
Simply awesome. The way it has been explained.
Excellent; very helpful. Thank you so much.
Finally, a presenter who doesn't start every sentence with "so" or "".
One of the most effective lessons I have seen!
At last, an excellent and concise explanation of this functions, loved this clip ! Thanks
This extremely simple lesson can save one hundreds of lines of coding. Thanks for creating it!
Is this actually useful? I feel like you could do the same, even faster and more optimized with a simple numpy package
This is gold. I have been doing codewars tasks for a while now, painstainkingly writing each lines for conditions. I wiish I found this earlier!
Great concise video, this was the first video that I found using python3
lot of confusion regarding comprehensions,lambda,map functions~!today i got clarity !!thk u so much!!!
Thanks for the video! I was confused on lambda and this video explained them really well.
Thanks a lot from Brazil! I always found them very confusing, now I am happy with this learning experience!
Thanks for clarifying these so eloquently. Loved it.
Well explained! I started learning Python 4 days ago on Treehouse, but still, with this explanation I managed to make my first lambda functions work in one go.
4 days eh?
Very simplified explanation..highly useful..can't thank you enough..outstanding
Explanation was outstanding....crisp, clean and clear... Watched some of the videos but i found them vague... Contented after watching this ...cheers ..and Yes...Subscribed 😊
Neat and clear explanation with good example.
Thanks for sharing Joe, very clear and didactics your explanation.
Thank you for the explanation. Just a correction at 5:24 . You cannot pass the square function as-is to the map along with the list. The map is expecting individual items. Not the list itself.
ya sure? pretty sure it will work.
Very helpful sir. Hope a lot of students will learn something from it. Regards, love and affection.
thank you, so clear. I love the visuals
you have exaplained in simple english brother. thank you
That is awesome. simple, neat visually presented.. easily understandable on comparing to traditional functions
i watched alot of videos about that functions, i couldn't understand any one of them! except yours, it was awsome!
At 5:00 you can’t use the square function with map there. Since map takes on element from the list a time, and then applies the square function to it, *but* the square function is written to deal with an entire list not a single element.
Thanks a lot. I am a Java developer. I find this map, filter, reduce concept new. Learnt new thing today 😊😊
Very clear. Thank you for taking the time to enlighten us.
Word of correction about 3:10 you’re saying that map returns a list. This is not true, it returns an iterator which may or may not be converted into a list. This is why we use list(map(func, [])) to convert a map output to a list.
Good input. Thanks!
@@oggiai You’re welcome :)
helpful video, really explains the lambda concept
Superb explanation Joe!! I have always confused with Map filter reduce and list comprehension concepts !!! I am very much clear now exactly when to use them.
Your videos are outstanding.
+Wingo Chambers thanks
Thanks, u explained elegantly.
The best Tutorial i have seen so far. well explained and i like the way u relate the subject with other similar operations.
Thank you sir for your crystal clear explanation!!
This is best video on RUclips,
Thanks!
Simple and brief explanation! Thank you very much for your efforts!
Very well explained. Thank you.
Masha Allah. What a concise explanation. Thank you Brother. May peace be upon you.
Explained in very easy way. Great video!!
nice!, thank you so much, you have better lecture than my professor did!
Definitely helpful vid, hate reading python docs
Great video. Very simple and clear explanation. Thanks.
well done man thanks for your clean and simple explanation
so simple and clear, subscribed! Oh, you have a lot more videos!
+photinoman I have about 90 videos. A third of them are on Python data structures and algorithms
you use map function when you need to pass a function on variables, and use filter when you need to pass a condition on all elements and get the elements which hold true for it
Very clear explanation thanks jay
Great video, beautiful and clear explanation :-)
Clear explanation
Hi Joe, I am late to the party, but this is a very well made video. Super clear and helpful. Thanks.
that helps so muchhhh!🥳 Thank You!❤
This was very useful. Thank you
Really clear explanation! Thank you so much!
brief and clear !!! thanks
Good one for beginners
What is difference between map and lambda. Where can we exactly use all those map, lambda and filter. Great 👍 video
Great Video! Any chance you'd be open to doing a comparison between Javascript and Python for shared functions (a compare and contrast?)
Good idea. I do have a very similar video for Java on Streams processing. It’s my most popular video
I like your tutorials ! cheers
Thanks! That was simple to understand..
Good Video with simple explanations... n=[10,100,1000,10000] print("Thank You {} Much". list(map(lambda x:(format(" very very ")**2, n))
))
Great video
You make it look easy, Thanks a lot!
Just easy to ubderstand and really enjoyed. Thanks sir
Excellent video! What I don't understand is how does the map and reduce function in python have anything to do with Hadoop's map and reduce? how are they related?
Nice clear explanation - thanks
Thank you sir for this video.Now I understand why they are called anonymous functions:)
Thanks Joe. Can you upload video with more complex examples using lambda
that was a real help joe
Good work sir
nums = [4, 3, 2, 1]
def square(x):
return x*x
print([square(num) for num in nums])
Short and easy one:
nums = [4, 3, 2, 1]
print([x * x for x in nums])
Hi Joe, Thanks for the video. All the examples you have you given here from memory. My question: How we can work with a large CSV file?[File management ]
Dang, I covered that in my Java Streams video, but not the Python one. Actually, I think I have two Python Map Reduce videos. There may be a link in comments. I don’t remember if I covered file IO in the other one. I also have a couple Python videos just on file IO, including CSV.
there are syntax problems in the code shown 4:59. it should be print(square([4,3,2,1])). It should be print(map(square,n))
short and sweet. thanks
Excellent. !!!!!
great video, thank you for this! But...
why do we use these functions if we can just use list comprehensions??🤔🤨
This is amazing
Perfect explanation
Woah, so simple! Thanks so much for the video, I think I understand now.
your life is so simple!
thank you Joey for this informative video!!
awesome thanks for taking the effort to make this
loved the video...very pellucidly explained...thanks....earlier i skipped the video coz of music :P
Good explanations. Thanks.
Thanks for this its fluently help me
Nice explanation. Thanks
an informative video! thank you
Very well explained.
tumbs up for the terminator style soundtrack .. .
When you create a list comprehension or Lambda function does python assign a default variable name to the newly created list? The def function allows this.
i love the intro music