Python Pandas: N-largest with Apply Method

preview_player
Показать описание
Learn how to use apply method to find the largest or smallest column names per row. You can learn what axis means, how to read pandas documentation and apply functions nlargest for different dataset problems.
Рекомендации по теме
Комментарии
Автор

Thanks! Clear explanation. Maybe would have been good to explain at the end why got the runtime error when demonstrating the ‘ nsmallest’ method; as I immediately recognized this some similar mistakes I made in the past: altering the data frame so that you cannot re-run that same expression anymore 🤦‍♂️

fkwvdpol