Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Screen Compounds Against Target Properties | Virtual Screening and Compound Ranking
Python for Chemoinformatics
セクション 3.  4
single

single

bookChallenge: Screen Compounds Against Target Properties

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

タスク

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

Write a function rank_candidates that takes a pandas DataFrame with two columns: smiles (molecular SMILES strings) and predicted_activity (numerical scores). Your function should:

  • Sort the DataFrame by predicted_activity in descending order;
  • Assign a new column rank with integer ranks (1 for highest score, 2 for next, etc.);
  • Return the ranked DataFrame with the new rank column included.

You should not modify the input DataFrame in-place; return a new DataFrame.

解答

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

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

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

セクション 3.  4
single

single

AIに質問する

expand

AIに質問する

ChatGPT

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

some-alt