Python For & While Loops for Data Science / Data Analysis - P.3

  Рет қаралды 8,149

Luke Barousse

Luke Barousse

Күн бұрын

Пікірлер: 44
@ArthurBotis
@ArthurBotis 7 ай бұрын
Not only was this a thorough explanation of the concept but the content was also engaging, love The Office. Thanks!
@vish949
@vish949 2 жыл бұрын
This content u provide is insane, you have no idea how many people you've helped with this. Thanks man!!
@LukeBarousse
@LukeBarousse 2 жыл бұрын
Aw thank you so much for this!
@0o_KASHIII_o0
@0o_KASHIII_o0 2 жыл бұрын
I only recently started learning python and loop was one of many things that I didn't quite understand. This video IS the one the gave me "AHA" moment and now it all makes sense. You have a way to explain difficult things in a simple way. Keep up the good work!
@LukeBarousse
@LukeBarousse 2 жыл бұрын
Heck yeah! Glad this video helped!
@HelloIamLauraa
@HelloIamLauraa Жыл бұрын
hahah yee I also had this "AHAAAA" moment a couple of time by Luke
@ilyan5189
@ilyan5189 3 жыл бұрын
Ever since I came across your channel, I've become extremely interested in DATA science. Really great content. Keep it up!. Hoping that your channel grows into something big!!
@LukeBarousse
@LukeBarousse 3 жыл бұрын
I hope so too!! Thanks for the sub!
@ДмитрийИванов-ш5т6х
@ДмитрийИванов-ш5т6х 3 жыл бұрын
Love the way you implement Python to a well-known sitcom, makes learning process much more entertaining. I shall take "Parks and Recreation" script and do some similar stuff in order to sustain new aquired skills. Thank you!
@LukeBarousse
@LukeBarousse 3 жыл бұрын
Nice! Make sure you share this!!
@aissamboudra7995
@aissamboudra7995 2 жыл бұрын
Many thanks luke :), so great contain, no place to next video...
@gamespauls7765
@gamespauls7765 2 жыл бұрын
As always top-notch quality from Master Luke DataWalker :) Quick question please! At 22:00, how exactly does the "previous_item" variable work properly? When the condition initializes the item that matches the condition is (let's say) at position X in the list. How on science's green earth, we do retrieve the X - 1 position? (meaning with pull the sentence before our condition statement?) I presume when the [for statement] takes takes effect the [item] is in X - 1 position (i.e. previous sentence), and it is only when the nested [if statement] takes effect that the [item] receives the position required by our condition? Thank you!
@LukeBarousse
@LukeBarousse 2 жыл бұрын
Thanks! And yes your last statment is correct. It doesn't match the "That's what she said" until the sentence after... so I have it stored in previous_item and can recall it with this for loop
@gamespauls7765
@gamespauls7765 2 жыл бұрын
@@LukeBarousse Thank you :)
@pedrosoto2221
@pedrosoto2221 2 жыл бұрын
Hey, Luke! Great video. What would happen if the first item to enter the loop is actually “That’s what she said” and condition is True on the first iteration? Then it would return the item twice, correct? Edit: Actually I think it’d throw an error since previous_item has no value. Please let me know if I’m wrong, I’m just going through it in my head and haven’t used Python in a long time!
@LukeBarousse
@LukeBarousse 2 жыл бұрын
@@pedrosoto2221 I think it would give the sentence after "That's what she said" which wouldn't be the punchline/joke
@Dmitry-xj1hc
@Dmitry-xj1hc 2 жыл бұрын
Thank you, man, you're great!
@fatimak6440
@fatimak6440 3 жыл бұрын
this helps! very nicely explained. thank you!
@LukeBarousse
@LukeBarousse 3 жыл бұрын
Hi Aneeta thank you for the kind words! Glad you got use out of this Video!
@adfbi
@adfbi 3 жыл бұрын
Hello Luke, when I execute the commands to obtain the list of all lines (in your tutorial you run those command at minute 19:35), unfortunately the first line that comes out is from episode 3 ("Good luck. [closes door and locks it]"). :( :( I tried and tried to understand why, but without success. Where does this issue come from? Thanks in advance...
@LukeBarousse
@LukeBarousse 3 жыл бұрын
I'm not to sure. Have you pulled the code off of my github repository?
@adfbi
@adfbi 3 жыл бұрын
@@LukeBarousse Yes, I did it exactly like you showed us in your tutorial. I think that at this point I will ask the question in "Stack Overflow" . But thank you so much for replying! I am at tutorial n.4 now, so happy and thankful about your playlist and I recommended you to a friend of mine!
@adfbi
@adfbi 3 жыл бұрын
@@LukeBarousse Hi Luke, it may be of interest for you to know that if I run the code in the jupyter notebook, all the lines are shown! Hence it seems to be a problem related to Visual Studio Code. I will try to figure it out. Singular problem anyway!
@LukeBarousse
@LukeBarousse 3 жыл бұрын
@@adfbi Okay thank you for letting me know this. When I get some time I'll look into this as well, thank you for also looking into it!
@LukeBarousse
@LukeBarousse 3 жыл бұрын
@@adfbi Awesome, I hope someone was able to help you there at stack overflow. Thanks also for recommending me to a friend, highly appreciate it!!
@EminentJade
@EminentJade 3 жыл бұрын
neatly explained, thank u so much
@LukeBarousse
@LukeBarousse 3 жыл бұрын
Awe thanks so much for this!
@juanpaolo21yt
@juanpaolo21yt 2 жыл бұрын
HI Luke, I have a question. "for row in csvreader": row is a variable right? Thank you.
@LukeBarousse
@LukeBarousse 2 жыл бұрын
Correct! row is considered a variable in this case.
@negisaab74347
@negisaab74347 3 жыл бұрын
Good content, are you planning for pandas and numpy videos?
@LukeBarousse
@LukeBarousse 3 жыл бұрын
If there is enough interest I will!
@pindbramptonOntario
@pindbramptonOntario 3 жыл бұрын
I didn't get it when you assigned the previous_item to the item. Can you share how you defined previous_item
@LukeBarousse
@LukeBarousse 3 жыл бұрын
I'd checkout my jupyter notebook (link in description) as it will show how I did this better
@fatimak6440
@fatimak6440 3 жыл бұрын
Wondering what interface you're using? It says Jupyter server but it doesnt 'look' like JupyterNotebook or JupyterLab.
@LukeBarousse
@LukeBarousse 3 жыл бұрын
HI ANeeta, great question. I'm using VS code, free code editor from Microsoft. Here is a video on how to install it: kzbin.info/www/bejne/fqekm6GmdpugoqM
@alexis.jacobo.drums14
@alexis.jacobo.drums14 2 жыл бұрын
Hey Luke! First of all, thank you for sharing your knowledge. I wanted to ask you, in the last episode of this video you create the variable 'previous_item' and it's = item, I don't understand how it returns the previous line, aren't you asking to 'previous_item' to be equal to item?
@LukeBarousse
@LukeBarousse 2 жыл бұрын
Do you have a time stamp for the last episode? I couldn't find what you were referencing
@alexis.jacobo.drums14
@alexis.jacobo.drums14 2 жыл бұрын
@@LukeBarousse Hey Luke, thanks for replying. It's at 22:16, I see 'Previous item' is defined like Item, I understand that you're defining the same value that Item has, then if the condition is not implied in Item, it returns 'Previous Item' and shows an underline
@joeyditizii
@joeyditizii Жыл бұрын
Where did the "previous_item" come from. You didn't tell Python that "previous_item" was the line before the condition, so how did it know that "previous_item" was... the previous item.
@JoseAguilar-yz4bq
@JoseAguilar-yz4bq 2 жыл бұрын
19:33 That's what she said
@LukeBarousse
@LukeBarousse 2 жыл бұрын
🤣
@learnerlearner9200
@learnerlearner9200 3 жыл бұрын
great
@LukeBarousse
@LukeBarousse 3 жыл бұрын
🙌🏼
@paulbuono5088
@paulbuono5088 Жыл бұрын
I made a bot that tells me the age of the person in my family when I insert a name...it's the most useless thing ever yet I've never been more proud!
Python List Comprehension for Data Science / Data Analysis - P.4
22:27
Python Functions for Data Science / Data Analysis - P.5
28:44
Luke Barousse
Рет қаралды 5 М.
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Please Master These 10 Python Functions…
22:17
Tech With Tim
Рет қаралды 250 М.
Python Objects frequently used in Data Science / Data Analysis - P.1
19:44
Python for Data Analysis: Control Flow (if, else, for, while)
20:30
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,8 МЛН
R vs Python
7:07
IBM Technology
Рет қаралды 345 М.
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,2 МЛН
Lambda Functions for Data Science / Data Analysis - Python P.6
17:10
Luke Barousse
Рет қаралды 4,8 М.
Python in Excel Makes Power Query a MUST-HAVE in 2024!
13:19
David Langer
Рет қаралды 47 М.