Data, Data Science, Data Analysis, Python, Analytics.
= round(data['room_type'].value_counts(normalize=True) * 100, 2) percentage_housing # Creating the donut chart fig = go.Figure(data=[go.Pie(labels=percentual_habitacao.index, values=percentual_habitacao, hole=.3)]) # Updating the chart's appearance fig.update_traces(textinfo='percent+label',