Black Lives Matter. Please consider donating to Black Girls Code today.

Plotly python axis ticker format problems with epoch time that has milliseconds

Hello,

Struggling a bit with formatting my X axis data which is in epoch time with milliseconds. So it’s something like this:

1596044786.343841

Obviously I don’t want that to be displaying on the xaxis tick, but so far the below code doesn’t solve the problem. It displays the year/month/day/time all completely wrong.

fig.update_layout(
            xaxis = {'type': 'date','tickformat': '%H:%M:%S'},
            )

Can anyone advise on a way to convert it properly in this instance?

Thank You