Figure Friday 2024 - week 42

Did you know that snakes smell by flicking their tongues in the air to pick up chemical particles?

Week 42 of Figure Friday will pay homage to our dear reptiles by learning more about them and analyzing their unique features, using the snake data set.

Thank you to Sascha Steinhoff for offering the data on the total body length (TBL), fang position, pupil shape, mode of reproduction, and toxicity of thousands of snake species.

Things to consider:

  • can you improve the sample figure built?
  • would a different figure tell the data story better?
  • can you create a Dash app instead?

Sample figure:

Code for sample figure:
import plotly.express as px
import pandas as pd

df = pd.read_csv("https://raw.githubusercontent.com/plotly/Figure-Friday/refs/heads/main/2024/week-42/merged_snake_data.csv")
df.dropna(subset=['Dentition','Pupil','Common Name'], inplace=True)

fig = px.sunburst(df, path=['Family', 'Dentition', 'Pupil','Common Name'], values='TBL cm', color='TBL cm')
fig.show()

Participation Instructions:

  • Create - use the weekly data set to build your own Plotly visualization or Dash app. Or, enhance the sample figure provided in this post, using Plotly or Dash.
  • Submit - post your creation to LinkedIn or Twitter with the hashtags #FigureFriday and #plotly by midnight Thursday, your time zone. Please also submit your visualization as a new post in this thread.
  • Celebrate - join the Figure Friday sessions to showcase your creation and receive feedback from the community.

:point_right: If you prefer to collaborate with others on Discord, join the Plotly Discord channel .

Thank you to SnakeDB for the data.