Learn practical skills, build real-world projects, and advance your career

Fill valid code/values in place of blanks.

# import required libraries
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
scores = [29,27,14,23,29,10]

# find the mean of all items of the list 'scores'
np.mean(scores)
22.0
# find the median of all items of the list 'scores'
np.median(scores)
25.0
from statistics import mode

fruits = ['apple', 'grapes', 'orange', 'apple']

# find mode of the list 'fruits'
mode(fruits)
'apple'