I spend two days looking for a solution for a conditional problem. This video was exactly what I needed. Thank you very much!!!
@datagy
Жыл бұрын
Thanks so much for the feedback!!
@brtb3
2 жыл бұрын
The numpy option was exactly what I needed and worked great. Thank you, also for the other videos. Keep up the good work…
@datagy
2 жыл бұрын
Thanks so much for your feedback! 😊
@melodic_tech_house
Жыл бұрын
For me too
@19AKS58
4 ай бұрын
There are SO many, quite frankly TOO many instructional videos, and they are tedious, too long, and unclear, but YOURS is EXACTLY on point
@datagy
4 ай бұрын
Thank you so much! I really appreciate it.
@alihobballah
Жыл бұрын
This is an excellent Tutorial !!! . Beautifully explained, and you went over issues I have been struggling with. Thank you so much for taking the time to make this video
@datagy
Жыл бұрын
Thanks so much Ali!
@hashemrashidi1277
4 ай бұрын
Guys he is the best and simplest , best one seriously , just trust and watch till the end .
@Zenoandturtle
10 ай бұрын
Great presntation. I am building a trading bot using algorythm that deals with conditional columns (candlestick lengths of previous columbs) This is the video I was looking for. Thanks for the vid. Very clear and informative. Exactly what I was looking for.
@AndrewCB07
2 жыл бұрын
I've been looking for a video to help with my code for days. Your vid was by far the best and only one that added value. Well done!
@datagy
2 жыл бұрын
Thanks so much, Andrew!
@DavidWhiteJazz
Жыл бұрын
This was a clear and concise explanation that helped me a lot. Thank you for all that you do!
@datagy
Жыл бұрын
Thank you SO much David! That was very generous of you! I’m so glad you liked the video!
@Zenoandturtle
10 ай бұрын
One of the best I had seen.
@kathryngomes7869
Жыл бұрын
This is really awesome. Thankyou for this tutorial.
@datagy
Жыл бұрын
Thanks so much!
@thetudors9875
2 жыл бұрын
Excellent presentation… you really helped me understand map & apply methods
@datagy
2 жыл бұрын
I'm so glad it was helpful!
@wearerunnersw.a.r5613
2 жыл бұрын
great explanation, used the numpy method. works brilliantly
@datagy
2 жыл бұрын
Thanks so much!
@amirarsalanghazali1363
2 жыл бұрын
thanks a lot, you saved me a lot of time and effort
@datagy
2 жыл бұрын
I’m so glad!!
@zarirramiz8978
2 жыл бұрын
Thanks for clear explanation🎉
@datagy
2 жыл бұрын
Thanks Zarir!
@Dataanalyticspro
Жыл бұрын
Excellent video! Just what I need to solve a problem. Thank you!
@datagy
Жыл бұрын
Thank you!! I appreciate the comment!
@kawsydaisy
2 жыл бұрын
Thus video is very helpful and exactly what I needed! Thank you for the multiple examples with different scenarios!
@datagy
2 жыл бұрын
Thank you so much!
@andyb1322
Жыл бұрын
Oh man -- I've been trying to figure out more efficient ways of defining bins for a df. While I'm fairly new to Python, I've coded (in SAS) for 15 years, but that experience is only helpful in knowing how I would solve a coding problem -- in SAS. The numpy approach you mentioned is very simple and intuitive -- your tips are going to save me so much time! Thanks for making this video!!!
@datagy
Жыл бұрын
Thank you so much for this comment Andy! Made my day!
@Puma_178
2 жыл бұрын
your video is so good, thank u so much I was looking for this everywhere :)
@datagy
2 жыл бұрын
Thank you! That means a lot!
@leandrorberto
Жыл бұрын
Excellent video! Thanks!!!
@introduccionalageometalurg2797
2 жыл бұрын
Thanks for the useful lesson.
@datagy
2 жыл бұрын
I'm glad it was helpful!
@Drezzomir
2 жыл бұрын
Works like a charm! Many thanks dude :)
@datagy
2 жыл бұрын
Thanks Andrés!
@sonkamblepraveenkumar8230
Жыл бұрын
Thank you bro that what i was looking for my problem to be solved. Great!!!!
@jacksparrowcapitan3232
2 жыл бұрын
That's helpful beginner stuff, Thanks
@datagy
2 жыл бұрын
I’m glad it was helpful!
@Sandeepkumar-dm2bp
2 жыл бұрын
Excellent tutorial nice explanations, concise, covered many related concepts, various ways to do,
@datagy
2 жыл бұрын
Thank you so much!
@thecommonwheel
2 жыл бұрын
Excellent. Thanks for sharing your knowledge.
@datagy
2 жыл бұрын
Thanks Zac!
@kennethstephani692
Жыл бұрын
Great video!
@datagy
Жыл бұрын
Thanks Kenneth!
@munivoltarc
8 ай бұрын
Hi, you are doing awesomely work, 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.
@firdi3216
Жыл бұрын
wow bro. that is very helpful. from indonesia, thank you..
@datagy
Жыл бұрын
Thanks Firdi!!
@Troiler
2 жыл бұрын
heey!! this video provides everything I need for a project I have in mind..
@GauravDhage
2 жыл бұрын
Thanks man!
@datagy
2 жыл бұрын
Thanks for your comment!
@CX004
2 жыл бұрын
Awesome! Could you show an example taking in 2 parameters instead? Say taking Age and Gender... How do we achieve that using the function-apply approach?
@felixr1004
2 жыл бұрын
Great explanation
@datagy
2 жыл бұрын
Thank you!
@maxons.e4643
Жыл бұрын
This is great. But I need to do this for multiple columns. How do add values from another column to the new column without it affecting the existing values (except where there is null?
@Planetknowledge555
4 ай бұрын
Excellent
@victormadoya1354
7 ай бұрын
HI, what if you want to create a similar function with takes 2 values? such that the 2 values will be 2 columns rather than using one column. The def function to take 2 columns instead of one, then use apply function
@eldrigeampong8573
2 жыл бұрын
Superb tutorial. Keep it up
@datagy
2 жыл бұрын
Thanks so much!
@eldrigeampong8573
2 жыл бұрын
@@datagy My pleasure
@Mmmkay..
2 жыл бұрын
great video !
@datagy
2 жыл бұрын
Thank you!!
@zainhana2968
2 жыл бұрын
Can u give me an example if using nested conditional? Because when I have tried my nested conditional with function and loop, the value in new coloumn is nan
@diaconescutiberiu7535
Жыл бұрын
What about if i have a column that contains several words (on each row) and i need to create a new column with 1s/0s IF ... my records contain a specific word AND (at same time) doesn't contain (another) specific word. I want to flag those records
@ajibademotunrayo8453
2 жыл бұрын
Hi how do you replace zero values in a column based on multiple conditions
@sonal008
Жыл бұрын
I have 4 lac records. And I have to assign url based unique ID.. how I can do that?
@georgiyveter6391
Жыл бұрын
Hi, for example I have a table, which I've got by left outer join: person - vehicle dad - car dad - motorcycle dad - bicycle mom - car mom - bicycle son - None/NA/NaN/NaT How to group by person and count with condition (car and motorcycle)? When I use for example: df = df.groupby(['person'])['vehicle'].apply(lambda x: x[x == 'car'].count()) But I can't use a list in condition lambda x: x[x in ['car']], pandas says: ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()
@sepidehdavoudian5580
Жыл бұрын
Hi Thank you. I constantly receive this error, could you please help? 'NAType' object has no attribute 'str'
It’s likely that you have missing data in your column - you can fill those first before applying the conditional column.
@Gaming_Hub47
2 жыл бұрын
h=1 temp=h height=[] for i in range(60): if a[i]>b[i]: h=2 temp=h height.append(h) elif a[i]
@datagy
2 жыл бұрын
Hey Abhishek, sorry, I’m not sure what you’re hoping to accomplish. Could you elaborate?
@Gaming_Hub47
2 жыл бұрын
@@datagy we have two lists here, list a[] and b[] which contains some values, and the length of each lists is 60 thats why the for loop range is 60, then in the first 'if' condition if the 'i' value of the list a[] is greater then 'i' value of list b[] then the value of h will be 2 and we will append the value of h in the height[] list and similar condition is for second elif condition too but if both the condition fails then the value of h will be whatever the previous value of h, and i used temp variable to accomplish that....so how i will change all these scenarios according to the data frame......where list a and b are now two columns of the dataframe and instead of appending the values of h into a list i want to create a new column in the dataframe which will store it.....i hope that now it clears all the condition ......please help if possible.. it is like how can we compare 2 columns of a dataframe and if possible then how can we assign h the previous value when both the condition fails
@datagy
2 жыл бұрын
@@Gaming_Hub47 Thanks for the explanation! I'm struggling to picture the flow of the data. Can you include the list a and b for me to better understand? Happy to try and help!
Пікірлер: 84