NameError: name 'px' is not defined

I am getting this below error if any one hep me to fix that will be great

NameError Traceback (most recent call last)
in
----> 1 fig = px.histogram(medical_df,
2 x=‘age’,
3 marginal=‘box’,
4 nbins=47,
5 title=‘Distribution of Age’)

NameError: name ‘px’ is not defined

You Have not imported/installed the ploty library…
Just run these commands and it will work…