Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Batch Data Cleaning | Statistical Analysis and Automation
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Researchers

bookChallenge: Batch Data Cleaning

Завдання

Swipe to start coding

Write a function that takes a list of pandas DataFrames, each representing data from a different research site. For each DataFrame, fill missing values in the score column with the mean score for that site, and return a new list of these cleaned DataFrames.

  • Iterate through each DataFrame in the input list.
  • Calculate the mean of the score column for each DataFrame.
  • Fill missing values in the score column with the calculated mean for that DataFrame.
  • Store each cleaned DataFrame in a new list.
  • Return the new list of cleaned DataFrames.

Рішення

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

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

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

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

single

Запитати АІ

expand

Запитати АІ

ChatGPT

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

close

bookChallenge: Batch Data Cleaning

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

Завдання

Swipe to start coding

Write a function that takes a list of pandas DataFrames, each representing data from a different research site. For each DataFrame, fill missing values in the score column with the mean score for that site, and return a new list of these cleaned DataFrames.

  • Iterate through each DataFrame in the input list.
  • Calculate the mean of the score column for each DataFrame.
  • Fill missing values in the score column with the calculated mean for that DataFrame.
  • Store each cleaned DataFrame in a new list.
  • Return the new list of cleaned DataFrames.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

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

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

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

single

some-alt