import plotly.express as px
h_town = nba[(nba[‘Tm’]==‘HOU’)]
fig = px.pie(h_town, values=‘PTS’, names=‘Player’,
title=‘Houston Rockets: Player Point Distribution’,
hover_data=[‘MP’], labels={‘MP’:‘Minutes Played’})
fig.update_traces(textposition=‘inside’, textinfo=‘percent+label’)
fig.show()
AttributeError: module ‘plotly.express’ has no attribute ‘pie’