Lesson 5/29_rolling_mean.py
def plot_data(df, title="Stock prices"):
    """Plot stock prices with a custom title and meaningful axis labels."""
    ax = df.plot(title=title, fontsize=12)
    ax.set_xlabel("Date")
    ax.set_ylabel("Price")
    ax.legend(loc="upper left")
    return ax
Plot stock prices with a custom title and meaningful axis labels.
Plot stock prices with a custom title and meaningful axis labels.
Plot stock prices with a custom title and meaningful axis labels .
def plot_data(df, title="Stock prices"):
    ax = df.plot(title=title, fontsize=12)
    ax.set_xlabel("Date")
    ax.set_ylabel("Price")
    ax.legend(loc="upper left")
    return ax
def plot_data ( df , title = "Stock prices" ) : ax = df . plot ( title = title , fontsize = 12 ) ax . set_xlabel ( "Date" ) ax . set_ylabel ( "Price" ) ax . legend ( loc = "upper left" ) return ax
Plot stock prices with a custom title and meaningful axis labels.
Plot stock prices with a custom title and meaningful axis labels .
"""Plot stock prices with a custom title and meaningful axis labels."""
df
title