Solution in:
https://stackoverflow.com/questions/77212810/importerror-cannot-import-name-plot-partial-dependence-from-sklearn-inspecti
https://scikit-learn.org/0.24/modules/partial_dependence.html#partial-dependence
The code should look like this:
from sklearn.inspection import PartialDependenceDisplay
fig,ax = plt.subplots(figsize=(12, 4))
PartialDependenceDisplay.from_estimator(m, valid_xs_final, ['YearMade','ProductSize'], grid_resolution=20, ax=ax)
or
PartialDependenceDisplay.from_estimator(m, valid_xs_final, ['YearMade','ProductSize'], grid_resolution=20, ax=ax, kind='individual')