How To Count Data In A DataFrame - Pandas For Machine Learning 5

How To Count Data In A DataFrame - Pandas For Machine Learning 5

Codemy.com

2 года назад

12,375 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@Alphabet_-_
@Alphabet_-_ - 26.09.2022 22:09

brin·dle
a brownish or tawny color of animal fur, with streaks of other color.

Ответить
@collinslife7021
@collinslife7021 - 28.09.2022 01:57

I have learned quite a bit from you in your Django blog series thanks for your knowledge.

Ответить
@ProxyAddress
@ProxyAddress - 28.09.2022 18:03

I cannot express how helpful your Django Wednesday playlist was for me. Myself and another dev were asked to create an application in 2 weeks that could handle a variety of functions. All of which were covered in your series. I am not even sure I will need your course material in the future, but I bought it anyway as a huge thank you for your wonderful content. Again, thank you!

Ответить
@infinitespace1982
@infinitespace1982 - 02.10.2022 13:47

Hi! I was wondering if you could link the data that you are using in the comments. Thanks!

Ответить
@georgiyveter6391
@georgiyveter6391 - 21.11.2022 19:57

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()

Ответить
@IshaZaka
@IshaZaka - 18.12.2023 23:59

Your videos are very great, plz upload videos related to tensor flow and pytorch

Ответить
@iablokova
@iablokova - 10.03.2024 13:07

Thanks a lot! I like your videos, its short, funny! That's what I'm talking about!

Ответить
@siddharthasthana2195
@siddharthasthana2195 - 07.04.2024 08:29

Hi, I am new here, but learning a lot from your videos. Would be very helpful if you could tell how to import this particular dataset from github.

Ответить
@Mayank-jw9yy
@Mayank-jw9yy - 13.04.2024 10:43

great buddy my paid course has not teach me that much in depth......

Ответить
@NPBPires
@NPBPires - 11.07.2024 17:52

Thank you! You Helped me a lot!!!
I still have a quest : How can I count 2 specific columns? (For Exemple: How many dogs with each color for 3 specific Breed).
Can someone help me?

Ответить
@frederic0chopin
@frederic0chopin - 29.07.2024 14:19

this is very fun

Ответить
@MaxPlank-ht2jr
@MaxPlank-ht2jr - 30.10.2024 11:54

Thank u . Love from nepal

Ответить