0 votes
in Python Flask by
Write a function to impute the median price of the selected California cheeses in place of the missing values.

1 Answer

0 votes
by

This question requires you to use two built-in pandas methods:

dataframe.column.median()

This method returns the median of a column in a dataframe.

dataframe.column.fillna(`value`) 

This method applies value to all nan values in a given column.

Related questions

0 votes
asked May 9, 2023 in Python Flask by Robin
0 votes
asked May 9, 2023 in Python Flask by Robin
...