Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Team Leaders Table | Team Performance Analysis
Python for Coaches
セクション 2.  5
single

single

bookChallenge: Team Leaders Table

メニューを表示するにはスワイプしてください

Coaches often want to quickly identify team leaders in key statistics. Use pandas to automate this process.

タスク

スワイプしてコーディングを開始

Write a function that takes a DataFrame with columns 'athlete', 'goals', and 'assists' and returns a new DataFrame containing only the athletes who have the highest number of goals or assists.

  • Find the maximum value in the 'goals' column.
  • Find the maximum value in the 'assists' column.
  • Select all rows where the value in 'goals' equals the maximum goals or the value in 'assists' equals the maximum assists.
  • Return a DataFrame with only these rows.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 2.  5
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt