What values are being passed in for the estimator parameter when creating a barplot?


#1

Question

In the context of this exercise, what values are we passing in for the estimator parameter when we create a barplot?

Answer

When we use the estimator parameter, we pass in objects that are callable.

Basically, callable objects are like functions, which we can call.

The functions we pass for the estimator parameter must only be functions that can apply to list values.

As a result, we can pass in values like, np.median, and len which are functions that apply to lists. However, we cannot use functions like str or int since these do not apply to lists.