The last three list comprehension videos of yours I just watched makes it really clear. For some reason, in the past, list comprehensions seemed so random, but not anymore!
The reason the outputs aren't the same at 7:20 is because the first one is a list, the second one is just printing the individual results inside the nested for.
@Brendan Metcalfe You are by far the best I have watched in terms of explanation and breaking down each problem statement . Simply amazing !! I have messaged you on linkedin as well. Please come out with a playlist on the below topics . It will be super helpful- : 1) Numpy , python libraries 2) Pandas 3) Regular Expressions 4) OOP concepts
Hey Brendan, thank you for the video! I tried to solve a problem with it but I'm still stuck (for 4 hours straight) ... May I ask you for advice? I have a dataframe with several columns. I now want to create a new columns that contains a string ("yes") if 1.) one of the columns (column name: condition) contains a certain string-value ("pictures") and 2.) the float-value of another colums (column name: rt for reaction time) is > 0.5. And if the first column ("condition") contains the same string-value ("pictures") but the other column has a float-value 0.5 else "no" for i in df.rt] --> but this only contains the condition referring to the reaction time (rt) > or
I was hoping you were going to include adding unique list items so you would only have one entry per fruit with the number of summed. I don’t know if that can be done in the list comprehension or not.
The last three list comprehension videos of yours I just watched makes it really clear. For some reason, in the past, list comprehensions seemed so random, but not anymore!
That is the real Best Ultimate Guide to Python LC
I was literally searching for this. Awesome work in a simple way you have explained I am new to Python was stuck with this. Thank you
thanks I appreciate it!
great explanation!
Thanks 👍
Thanks very much for this video series man!!
🙏🙏
Great job thank you!
Thanks!
Thank you very much
How about print((i, f), end=“, “)? This way you might get similar outputs.
The reason the outputs aren't the same at 7:20 is because the first one is a list, the second one is just printing the individual results inside the nested for.
I never thought I could find something like this. I'm amazed!😃
Thanks!
THANK YOU FOR THIS BRENDAN!! 😇
which terminal you using and how are you able to get auto completion in it ?
Normal mac terminal, or iterm2, with bpython
@@BrendanMetcalfe Oh thats why you had auto completion and color scheme in python shell. Thanks I didn't know that
@@vishaljuneja1206 Yeah bpython is cool
Great Job
Thanks!
Great Stuff 💯
Thanks!
@Brendan Metcalfe You are by far the best I have watched in terms of explanation and breaking down each problem statement . Simply amazing !!
I have messaged you on linkedin as well. Please come out with a playlist on the below topics . It will be super helpful- :
1) Numpy , python libraries
2) Pandas
3) Regular Expressions
4) OOP concepts
Thanks
Sir can you please tell me which side was just you visiting in starting where you show us info of list comprehension
python.org/dev/peps/pep-0202/
python.org/dev/peps/pep-0202/
Thanks to you very much
Hey Brendan, thank you for the video! I tried to solve a problem with it but I'm still stuck (for 4 hours straight) ... May I ask you for advice?
I have a dataframe with several columns. I now want to create a new columns that contains a string ("yes") if 1.) one of the columns (column name: condition) contains a certain string-value ("pictures") and 2.) the float-value of another colums (column name: rt for reaction time) is > 0.5. And if the first column ("condition") contains the same string-value ("pictures") but the other column has a float-value 0.5 else "no" for i in df.rt] --> but this only contains the condition referring to the reaction time (rt) > or
great video, where can I find your code?
Awesome, thanks.
Youre welcome 👍
what i'm getting so far is that "list comprehensions = squashing for loops into 1 line so they are less readable"
haha pretty much
I was hoping you were going to include adding unique list items so you would only have one entry per fruit with the number of summed. I don’t know if that can be done in the list comprehension or not.
My first thought is to use the set() built in function somewhere to ensure only unique items.
Cool
ahh so its basically creating new sub nested parts when adding an item to the right