I had the same issue and my solution was as followed:
from statsmodels.tsa.stattools import pacf
import plotly.graph_objects as go
# df['sum'] is my time series where i want the pacf of.
df_pacf = pacf(df['sum'], nlags=300)
fig = go.Figure()
fig.add_trace(go.Scatter(
x= np.arange(len(df_pacf)),
y= df_pacf,
name= 'PACF',
))
fig.update_xaxes(rangeslider_visible=True)
fig.update_layout(
title="Partial Autocorrelation",
xaxis_title="Lag",
yaxis_title="Partial Autocorrelation",
# autosize=False,
# width=500,
height=500,
)
fig.show()
I hope this solution helps someone