[Python] plotly cant plot scatter graphs anymore

Discussão em 'Python' iniciado por Stack, Agosto 23, 2025.

  1. Stack

    Stack Membro Participativo

    I am using the update plotly version 6.3.0 and im trying to plot a simple stock close price in 1year period. The uploaded image is the graph output, how it can be seen its not right. Im also in jupyter notebook, but the other code that i did a long time ago in plotly not graphing either.

    import yfinance as yf
    import numpy as np
    import pandas as pd
    import statsmodels.api as sum
    from statsmodels.tsa.stattools import coint, adfuller
    import plotly.graph_objects as go
    petr4 = yf.download("PETR4.SA", period="1y")["Close"]
    petr4.index = petr4.index.tz_localize(None)
    fig = go.Figure()
    fig.add_trace(go.Scatter(x=petr4.index, y=petr4))
    fig.update_layout(title_text="petr", width=500, height=500)
    fig.show()


    [​IMG]

    Continue reading...

Compartilhe esta Página