✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

How to make a needle plot using Python Plotly?

I would like to have a needle plot similar to the following figure using plotly.py .

The following figure was plotted with R. I am wondering if I can do it with Python. Thanks a lot.

library(ggplot2)
library(plotly)
p <- ggplot(data.frame(x=1:10, y=1:10),aes(x=x, ymax=y, ymin=0)) +
     geom_linerange()
ggplotly(p)