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

preview_player
Показать описание
This video is a walkthrough of Kaggle's #30DaysOfML. In this video, we learn about strigns and dictionaries in #Python :)

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. :)

Follow me on:
Рекомендации по теме
Комментарии
Автор

If you like the videos, please do consider subscribing. It helps me keep motivated to make awesome videos like this one. :)

abhishekkrthakur
Автор

Thanks for the detailed explanation Abhishek.

sankarsan
Автор

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.

adnana
Автор

the kaggle is outsatnding as always & the way abhishek sir is 'The best combination

akshaychoudhary
Автор

thank you so so much, you really help me to see diffferent way to solve these problems

duykhanhpham
Автор

Dear Abhishek da,

Thank you so much for taking the time to make these tutorials! I am so grateful...

ahnafshahriyar
Автор

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.

baltricks
Автор

Thisss series is veryyyy

Thankyou so much aabhiii 🤝🌝

sagarkhule
Автор

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!

淩子祐
Автор

F-strings are even better than .format(). I'd like to see an update to this lesson with f-strings.

VioletVal
Автор

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?

prabhavkaula
Автор

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

gabrieldomasig
Автор

Second last day? Wont you cover all 30 days?

sarthaksingh
Автор

How did you learn all this please help me i beg you please help me

nandangn
Автор

My output is giving error : 'list' object has no attribute 'lower'
How to solve this error... please reply..

NishaAgrawal
Автор

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?

alvinbong
Автор

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.

sohampod
Автор

'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?

lifelonglearning
Автор

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

sohampod