Kaggle's 30 Days Of ML (Day-6): Python Strings and Dictionaries

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

Abhishek Thakur

Abhishek Thakur

2 жыл бұрын

This video is a walkthrough of Kaggle's #30DaysOfML. In this video, we learn about strigns and dictionaries in #Python :)
Tutorial Link: www.kaggle.com/colinmorris/st...
Note: this video is not sponsored by #Kaggle!
Please subscribe and like the video to help me keep motivated to make awesome videos like this one. :)
To buy my book, Approaching (Almost) Any Machine Learning problem, please visit: bit.ly/buyaaml
Follow me on:
Twitter: / abhi1thakur
LinkedIn: / abhi1thakur
Kaggle: kaggle.com/abhishek

Пікірлер: 33
@abhishekkrthakur
@abhishekkrthakur 2 жыл бұрын
If you like the videos, please do consider subscribing. It helps me keep motivated to make awesome videos like this one. :)
@aymanmomin432
@aymanmomin432 2 жыл бұрын
how do you enable dark mode on kaggle?
@sankarsan
@sankarsan 2 жыл бұрын
Thanks for the detailed explanation Abhishek.
@baltricks1750
@baltricks1750 2 жыл бұрын
Thank you so much for explaining things in details and taking time to show new language features like the f-string. I really enjoy it.
@adnana2351
@adnana2351 2 жыл бұрын
Thanks for the detailed explanation. I always struggle to solve any programming challenges. Listening to your explanations really helps with the thought process and very few people do that.
@abhishekkrthakur
@abhishekkrthakur 2 жыл бұрын
Happy to help!
@ahnafshahriyar4942
@ahnafshahriyar4942 2 жыл бұрын
Dear Abhishek da, Thank you so much for taking the time to make these tutorials! I am so grateful...
@user-nm9rp9kg5j
@user-nm9rp9kg5j 2 жыл бұрын
Thank you for the video, as a beginner, I really appreciate this serues as I can really review and refresh with it! Please keeping this series!
@sagarkhule6439
@sagarkhule6439 2 жыл бұрын
Thisss series is veryyyy helpfulllll Thankyou so much aabhiii 🤝🌝
@duykhanhpham5803
@duykhanhpham5803 2 жыл бұрын
thank you so so much, you really help me to see diffferent way to solve these problems
@akshaychoudhary5770
@akshaychoudhary5770 2 жыл бұрын
the kaggle is outsatnding as always & the way abhishek sir is explaining....booooom 'The best combination
@VioletVal529
@VioletVal529 2 жыл бұрын
F-strings are even better than .format(). I'd like to see an update to this lesson with f-strings.
@snehangsude1178
@snehangsude1178 2 жыл бұрын
I agree! F-strings are actually lot more user-friendly! However on few cases format does come in more handy!
@NishaAgrawal119
@NishaAgrawal119 2 жыл бұрын
My output is giving error : 'list' object has no attribute 'lower' How to solve this error... please reply..
@abhishekkrthakur
@abhishekkrthakur 2 жыл бұрын
show some code please
@gabrieldomasig
@gabrieldomasig 2 жыл бұрын
Good day, Sir Abhishek! I am confused in the last part of the lecture on item 3. Why do we make these lines of code? indices = word_search(doc_list, keyword) keyword_locations[keyword] = indices
@prabhavkaula9697
@prabhavkaula9697 2 жыл бұрын
Hello Abhishek bhaiya. I hope you are doing well. I am Prabhav. I have been going through your 30-days-of-ml series but unfortunately i missed out on the registration for the competition on August 2. I wanted to know if there is a way I can still solve the problems and check my submissions?
@abhishekkrthakur
@abhishekkrthakur 2 жыл бұрын
yes, you can still do the courses, solve exercises and get a certificate. i post links to tutorials in the description box for each day.
@nandangn8840
@nandangn8840 2 жыл бұрын
How did you learn all this please help me i beg you please help me
@sarthaksingh2175
@sarthaksingh2175 2 жыл бұрын
Second last day? Wont you cover all 30 days?
@abhishekkrthakur
@abhishekkrthakur 2 жыл бұрын
for python module :) ill cover all 30 days.
@sarthaksingh2175
@sarthaksingh2175 2 жыл бұрын
@@abhishekkrthakur relief 😅😅
@suzieq9085
@suzieq9085 2 жыл бұрын
Can you please recommend more Python exercises for beginners to practice? Thank you
@alvinbong4335
@alvinbong4335 2 жыл бұрын
In the 2nd question, I tried to write this code and checked its output: doc_list = ["The Learn Python Challenge Casino.", "They bought a car", "Casinoville"] for doc in doc_list: tokens = doc.split() print(tokens) and the result shown was only ['Casinoville'], why is it so, instead of splitting all the words by spaces?
@abhishekkrthakur
@abhishekkrthakur 2 жыл бұрын
print is not inside the for :)
@alvinbong4335
@alvinbong4335 2 жыл бұрын
@@abhishekkrthakur I see! thank you so much
@sohampod
@sohampod 2 жыл бұрын
for 2nd question: I did this code indices = [] for i, doc in enumerate(doc_list): tokens = doc.split() for token in tokens: word = [token.strip('.,').lower()] if keyword.lower() in word: indices.append(i) return indices but I got the error of Incorrect: Expected return value of [1] given doc_list=['The Learn Python Challenge Casino', 'They bought a car, and a horse', 'Casinoville?'], keyword='car', but got [] instead.
@abhishekkrthakur
@abhishekkrthakur 2 жыл бұрын
Take this sentence: 'They bought a car, and a horse' and see if strip(",.").lower () removes the punctuations *after* the split and you will know what is wrong :)
@sohampod
@sohampod 2 жыл бұрын
@@abhishekkrthakur thank you so much, i got it.
@sohampod
@sohampod 2 жыл бұрын
key_indice = {} for keyword in keywords: index = word_search(doc_list, keyword) key_indice[keyword]= index return key_indice Incorrect: Expected return value of {'casino': [0], 'ear': [], 'bought': [1]} given doc_list=['The Learn Python Challenge Casino', 'They bought a car', 'Casinoville?'], keywords=['casino', 'ear', 'bought'], but got {'casino': [0], 'ear': [], 'bought': []} instead
@lifelonglearning9387
@lifelonglearning9387 2 жыл бұрын
'str'.join() split the string not in form of words but letters.. any thought please: k = 'hallo people' k.split() a = '!'.join([word for word in k]) print(a) =>: h!a!l!l!o! !p!e!o!p!l!e what did I do wrong?
@abhishekkrthakur
@abhishekkrthakur 2 жыл бұрын
use k = k.split() .split() doesnt work "inplace" :)
@lifelonglearning9387
@lifelonglearning9387 2 жыл бұрын
@@abhishekkrthakur many thanks Abhishek
Kaggle's 30 Days Of ML (Day-5, Part-1): Python Lists and Tuples
33:51
Abhishek Thakur
Рет қаралды 8 М.
small vs big hoop #tiktok
00:12
Анастасия Тарасова
Рет қаралды 29 МЛН
Children deceived dad #comedy
00:19
yuzvikii_family
Рет қаралды 8 МЛН
Khóa ly biệt
01:00
Đào Nguyễn Ánh - Hữu Hưng
Рет қаралды 22 МЛН
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 23 МЛН
How do random forests work?
16:31
Abhishek Thakur
Рет қаралды 4,6 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 794 М.
Kaggle's 30 Days Of ML (Day-4): Python Booleans and Conditionals
36:54
Kaggle's 30 Days Of ML (Day-12 Part-2): Handling Categorical Variables
55:43
How to Improve LLMs with RAG (Overview + Python Code)
21:41
Shaw Talebi
Рет қаралды 31 М.
Kaggle's 30 Days Of ML (Day-3): Python Functions
33:36
Abhishek Thakur
Рет қаралды 13 М.
Hyperparameter Optimization: This Tutorial Is All You Need
59:33
Abhishek Thakur
Рет қаралды 105 М.
small vs big hoop #tiktok
00:12
Анастасия Тарасова
Рет қаралды 29 МЛН