Python Pandas Tutorial: Pandas Apply Function and Vectorization #15

  Рет қаралды 4,347

Programming Is Fun

Programming Is Fun

Күн бұрын

Пікірлер: 8
@ProgrammingIsFunn
@ProgrammingIsFunn 9 ай бұрын
Dataset : github.com/AbhisheakSaraswat/RawData
@alkeshkumar2227
@alkeshkumar2227 3 жыл бұрын
Sir when we passes calcSales fun in lambda expression what is x[total sale amount] and how it x is referring to df column at 6:47
@ProgrammingIsFunn
@ProgrammingIsFunn 3 жыл бұрын
Hi Aklesh, using the lambda function we are applying the calcSales function on dataframe right, so x is lambda variable by which we are accessing the dataframe columns "Total Sale Amount". for more info watch lambda tutorial it will help you. kzbin.info/www/bejne/nJK5m5-KrcaFarc
@alkeshkumar2227
@alkeshkumar2227 3 жыл бұрын
@@ProgrammingIsFunn thank u sir ,comment is self explaining !!
@tobedeleted2030
@tobedeleted2030 2 жыл бұрын
3:10 doesn't make sense, so are you getting the max price for that customer or overall? wouldnt max(df.Quantity) give you the max quantity of the entire DataFrame, not just for this customer? .. why was only 1 customer record shown for Willie Oliver, I don't understand that part? wouldnt df.loc[:,"Customer","Total Sales Amount"].apply(max,axis=rows) give all records and the max values for each record ? , a bit confused
@ProgrammingIsFunn
@ProgrammingIsFunn 2 жыл бұрын
Hi tobedeleted, here we are getting the max price for overall customer in DataFrame. So, we will have only single customer against the max quantity and sales.
@Mini_LOL_Station
@Mini_LOL_Station 3 жыл бұрын
Hi Sir I am beginner in python programming can you guide me where I will start from. Sir if you provide a class please let me know.
@ProgrammingIsFunn
@ProgrammingIsFunn 3 жыл бұрын
Follow this playlist for Python from very beginner kzbin.info/aero/PLWuFHho1zKhWb-f-SJAMUCK--f8PJlG46
How do I apply a function to a pandas Series or DataFrame?
17:58
Data School
Рет қаралды 203 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Use less for-loops, use more vectorization
18:31
Samuel Chan
Рет қаралды 5 М.
Python Pandas Tutorial: Different ways to filter Pandas DataFrame #9
21:23
Pandas Functions: Three Ways to Use the Apply Function
12:11
Mısra Turp
Рет қаралды 21 М.
Pandas Functions: Apply vs. Map vs. Applymap
11:53
Mısra Turp
Рет қаралды 28 М.
Pandas Apply function, User Defined Function
9:54
TejaWithData
Рет қаралды 3,7 М.
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Rob Mulla
Рет қаралды 279 М.
1000x faster data manipulation: vectorizing with Pandas and Numpy
26:39
Understanding (and avoiding) the SettingWithCopyWarning in Pandas
8:11
Python and Pandas with Reuven Lerner
Рет қаралды 4,2 М.
How To Use apply() In Pandas (Python)
8:54
DataDaft
Рет қаралды 34 М.
Make Your Pandas Code Lightning Fast
10:38
Rob Mulla
Рет қаралды 188 М.