Pandas Functions: Three Ways to Use the Apply Function

  Рет қаралды 20,178

Mısra Turp

Mısra Turp

Күн бұрын

Пікірлер: 76
@misraturp
@misraturp 2 жыл бұрын
👉 All you need to know about Pandas in one place! Download my Pandas Cheat Sheet (free) misraturp.gumroad.com/l/pandascs
@raghavendrareddy7237
@raghavendrareddy7237 7 ай бұрын
How can I get access it's asking amount
@codingmyuniverse1029
@codingmyuniverse1029 2 жыл бұрын
Great Content, Just Keep going. I have to learn a lot from you.
@misraturp
@misraturp 2 жыл бұрын
Glad to hear that!
@jean-bernardsaint-eve3340
@jean-bernardsaint-eve3340 2 жыл бұрын
Nice, you are back, thanks for this great video
@misraturp
@misraturp 2 жыл бұрын
Yes, and there is more to come! :)
@tomrhee1
@tomrhee1 7 ай бұрын
By the way, the output I would like to have is Intercept if we have the constant term in the regression, and all other regression regressions; R^2, and STEYX. Thanks in advance.
@tomrhee1
@tomrhee1 7 ай бұрын
I am wondering if you could help me with the "Rolling Multiple Regression" method with window size held constant. Not many people show this on KZbin. Thank you in advance.
@mschuer100
@mschuer100 3 ай бұрын
this video is great. Very simple explanation and easy to understand. Thanks
@munivoltarc
@munivoltarc 9 ай бұрын
you are so gorgeous, and explaining subject so easily to all, wondaful work, keep it up, could you explain OHLCV data, apply, map functions, user defined functions to to find the trend on the High, Low columns, to get buy signals and sell signals by not using any price lagging indicators.
@jahironmateoguzman5497
@jahironmateoguzman5497 Жыл бұрын
I've been learning many related stuff about data for the las year and as a personal challenge I decided to do it in english while my native languaje is Spanish, with you that's not a problem, your tone of voice and speed are just perfect as well everything you explain just fit into my mind right away. Looking foward to learn wit you about deep learning since I saw you have a playlist for that topic. I really like the way you transmit information in such as understandable way.
@frictionless
@frictionless 4 ай бұрын
I love your videos. Keep up the good work! :)
@zhansayabauyrzhanova2492
@zhansayabauyrzhanova2492 5 ай бұрын
Well explained, thanks ❤
@DiscoveringWithVanah
@DiscoveringWithVanah 2 ай бұрын
I am sorry but "axis = 0" refers to rows while "axis = 1" refers to columns
@Kittyminxx
@Kittyminxx Ай бұрын
She does explain but easy to miss. You can apply. Let’s say implement to not get confused here… you can implement the apply function to either a whole df or to its series (columns). If you implement the apply function to a series it will apply the given function to each row in the series. So if you use the arg axis = 1 in the apply function itself. You are saying implement the apply function to the columns of the df. So now it will implement the function specified in the apply function arg (like np.mean) on each of the rows of the column in the df. Hope that helps
@dakshbhatnagar
@dakshbhatnagar 10 ай бұрын
The last bit was interesting 💯
@marceloherdy2379
@marceloherdy2379 Жыл бұрын
I discovered your channel yesterday and I must confess that I am very impressed with your way of explaining. Congratulations on your work and thanks for the videos! 😉
@misraturp
@misraturp Жыл бұрын
Thank you so much!
@GregThatcher
@GregThatcher 5 ай бұрын
Thanks!
@bubblebath2892
@bubblebath2892 4 ай бұрын
Great video ...very simplified and easy to understand ...and look great
@ben10_prvn
@ben10_prvn Жыл бұрын
love you 🤫
@aksrivastava455
@aksrivastava455 Жыл бұрын
Hello Misra, Thanks a ton for uploading this video. Please help if I have to update one column for eg. the salary column based on the condition on another column (here we can take posting type column). The condition is that for all those rows whose posting type is external, the salary column should be incremented by 2000 and for the rest salary should be incremented by 1000. How can this be done in pandas using the apply function.
@VivekKBangaru
@VivekKBangaru Жыл бұрын
Awesome, I able understand fully. Thanks
@harishpoalampalli9637
@harishpoalampalli9637 Жыл бұрын
This is Cool Turp !! There is a space between attributes which is causing lot of issue while copying variables in script !! Great explaining with the data !! This helps 1!! cheers !!
@hayden9944
@hayden9944 Жыл бұрын
ah great! just started learning python and rite into pandas because i need it spacifically. You have explained this better then anyone else i have found. Also you are beautifal like Eva Mendes.
@sanjaygupta5636
@sanjaygupta5636 Жыл бұрын
Superb Explanation :)
@mayurgangad7651
@mayurgangad7651 Жыл бұрын
Mam not received mail of cheatsheet 😑
@sidd_2906
@sidd_2906 2 жыл бұрын
Def common_word(row): ........... df['word_c'] =df.apply(common_word, axis =1) It's not creating a new column Error----> AttributeError : 'float' object has no attribute 'split'
@sidd_2906
@sidd_2906 2 жыл бұрын
Can you creat a function and use that function as a new column that will going to help me
@ingluissantana
@ingluissantana 2 жыл бұрын
Happy to see you back!!! Thanks a lot for this videoooo!!! 🙏🏼🙏🏼🙏🏼
@misraturp
@misraturp 2 жыл бұрын
It’s good to be back at it :) you are very welcome!
@TimePasser
@TimePasser Жыл бұрын
Thank you very much.. I have been looking for this.. I have df which contains billions of raw data. I had to make formulas for calculations and KPIs. using apply helped alot in terms of processing time. I cant thank you enough.
@misraturp
@misraturp Жыл бұрын
That's amazing to hear! You're very welcome :)
@kennethstephani692
@kennethstephani692 Жыл бұрын
Great video!
@misraturp
@misraturp Жыл бұрын
Thanks!
@oguzhankaraca9982
@oguzhankaraca9982 2 жыл бұрын
Thank you, great content. that’s an obvious and instructive explanation. For being more comprehensive, you could state apply, map and applymap functions at the same video next time. best wishes 🙂
@misraturp
@misraturp 2 жыл бұрын
That is actually my next video. :) I'll upload it in a couple of days!
@humblesoul8685
@humblesoul8685 Жыл бұрын
Lovely! I'm learning python right as part of my data science degree, we just touched on pandas. Very informative videos. Very insightful content here!
@misraturp
@misraturp Жыл бұрын
Thank you!
@himanshupandey9902
@himanshupandey9902 2 жыл бұрын
Thanks, you took a long leave from you tube. Your videos helped me. So thanks.
@misraturp
@misraturp 2 жыл бұрын
Yes, I was on holiday for a while. :) That's great to hear Himanshu, you are very welcome. :)
@tejasnaik4604
@tejasnaik4604 Жыл бұрын
Hi Misra, I have started learning pandas to work one of my project and your videos really helped me. You are a great educator! Best wishes :)
@misraturp
@misraturp Жыл бұрын
Great to hear Tejas, thank you!
@demba1955
@demba1955 Жыл бұрын
Thanks a lot Misra that’s a really good content, well explained !
@misraturp
@misraturp Жыл бұрын
You're welcome!
@Sandunbalage
@Sandunbalage Жыл бұрын
Thanks
@misraturp
@misraturp Жыл бұрын
No problem
@danieldanielides
@danieldanielides 2 жыл бұрын
I am participating in a Data Science Bootcamp at the moment. The material that you provide takes so much frustration off! Thanks a lot Misra.
@misraturp
@misraturp 2 жыл бұрын
That's great to hear! Thanks Daniel! Good luck with the bootcamp. :)
@alexandregouveac
@alexandregouveac Жыл бұрын
Thank you. Really, thank you. From brazil
@misraturp
@misraturp Жыл бұрын
You are welcome!
@invictus327
@invictus327 2 жыл бұрын
Thanks, Misra. Really useful. You are a great educator. 🙂
@misraturp
@misraturp 2 жыл бұрын
Thank you! 😃
@sidd_2906
@sidd_2906 2 жыл бұрын
df['q1_num_words'] = df['question1'].apply(lambda row: len(row.split(" "))) im getting error -----> AttributeError: 'float' object has no attribute 'split' pls help me out
@misraturp
@misraturp 2 жыл бұрын
seems like the row you're calling is a float and not a string.
@sidd_2906
@sidd_2906 2 жыл бұрын
@@misraturp no it's totally a string , actually I solving ml problem quora question pair similarity But when I check it showing me ---> Object type So what should I do
@MrHjk1974
@MrHjk1974 2 жыл бұрын
Great information Misra! Very helpful as I am starting to learn Pandas
@misraturp
@misraturp 2 жыл бұрын
That's great to hear Hemant!
@malo863
@malo863 Жыл бұрын
Nice job 👏
@AVS771
@AVS771 Жыл бұрын
Hi Misra, thank you for the great explanation. How come you applied data[["salary Range From","Salary Range To']].apply(np.mean, axis=1) with double brackets and you got a series at minute 4:34. You said earlier double brackets will return a dataframe. And wasn't the case here
@misraturp
@misraturp Жыл бұрын
Hello Avedis, it is because on the dataframe that is generated, I apply a numpy mean (np.mean) function. The result of this mean function is a series object.
@osoriomatucurane9511
@osoriomatucurane9511 Жыл бұрын
@Misra, the point you made in the tutorial was to ilustrate the apply method over a dataframe object and at that point in time you used [[colname]] passing two numeric variables. This is no dought a dataframe object, over which you calculted the average using df.apply(mean). Type(df[[colname ]]) is a dataframe class/type
@aminul.islam.
@aminul.islam. Жыл бұрын
Now I've got it well! Thanks a lot Misra :)
@misraturp
@misraturp Жыл бұрын
You're very welcome :)
@yucelled
@yucelled 2 жыл бұрын
Thanks for the great content! Keep up the good work please🥰
@misraturp
@misraturp 2 жыл бұрын
Thanks for watching!
@a.5214
@a.5214 2 жыл бұрын
I like this format, thank you! 🙂
@misraturp
@misraturp 2 жыл бұрын
Glad you enjoy it!
@bugito99wichit31
@bugito99wichit31 2 жыл бұрын
great sharing..Thank you
@misraturp
@misraturp 2 жыл бұрын
Thank you! Cheers!
@mehdismaeili3743
@mehdismaeili3743 2 жыл бұрын
Excellent, thanks.
@misraturp
@misraturp 2 жыл бұрын
You are welcome!
@e.t.499
@e.t.499 2 жыл бұрын
practical video
@misraturp
@misraturp 2 жыл бұрын
Thank you!
@samahmedalone6573
@samahmedalone6573 2 жыл бұрын
Thanks, 👍👍👍
@misraturp
@misraturp 2 жыл бұрын
You're welcome!
Pandas Functions: Apply vs. Map vs. Applymap
11:53
Mısra Turp
Рет қаралды 26 М.
How to use the Pandas GroupBy function | Pandas tutorial
19:03
Mısra Turp
Рет қаралды 30 М.
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 69 МЛН
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 22 МЛН
отомстил?
00:56
История одного вокалиста
Рет қаралды 7 МЛН
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 24 МЛН
Please Master These 10 Python Functions…
22:17
Tech With Tim
Рет қаралды 165 М.
How do I apply a function to a pandas Series or DataFrame?
17:58
Data School
Рет қаралды 202 М.
Using Data Visualization to Identify Data Problems
12:27
Mısra Turp
Рет қаралды 2,6 М.
How to Reshape Dataframes | Pivot, Stack, Melt and More
12:49
Mısra Turp
Рет қаралды 25 М.
Why I stopped using Jupyter Notebooks
11:17
Dave Ebbelaar
Рет қаралды 17 М.
Python Pandas Lambda Function Tutorial With EXAMPLES
12:58
Ryan & Matt Data Science
Рет қаралды 4,7 М.
Learn Pandas in 20 minutes!
23:40
Mısra Turp
Рет қаралды 21 М.
Pandas functions: merge vs. join vs. concat
16:15
Mısra Turp
Рет қаралды 26 М.
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Rob Mulla
Рет қаралды 271 М.
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 69 МЛН