title: AttributeError: module 'plotly.express' has no attribute 'sunburst'
body: <blockquote>
    <p>AttributeError: module 'plotly.express' has no attribute 'sunburst'</p>
  </blockquote>
  
  <p>My wrong code:</p>
  
  <pre><code>import plotly.express as px
  import numpy as np
  df = px.data.gapminder().query("year == 1957")
  fig = px.sunburst(df, path=['continent', 'country'], values='pop',
                    color='gdpPercap', hover_data=['iso_alpha'],
                    color_continuous_scale='gdpPercap',
                    color_continuous_midpoint=np.average(df['gdpPercap'], weights=df['pop']))
  fig.show()
  </code></pre>
  
  <p>Error message:</p>
  
  <pre><code>AttributeError        Traceback (most recent call last
  
  &lt;ipython-input-25-228e1998d41a&gt; in &lt;module&gt;()
        2 import numpy as np
        3 df = px.data.gapminder().query("year == 1957")
  ----&gt; 4 fig = px.sunburst(df, path=['continent', 'country'], values='pop',
        5                   color='gdpPercap', hover_data=['iso_alpha'],
        6                   color_continuous_scale='gdpPercap', ```
  
  AttributeError: module 'plotly.express' has no attribute 'sunburst'
  </code></pre>