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
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Chemoinformatics

bookChallenge: Screen Compounds Against Target Properties

Завдання

Swipe to start coding

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.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 4
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

close

bookChallenge: Screen Compounds Against Target Properties

Свайпніть щоб показати меню

Завдання

Swipe to start coding

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

some-alt