Lesson 7/36_plot_two_histograms.py
def plot_data(df, title="Stock prices", xlabel="Date", ylabel="Price"):
    """Plot stock prices with a custom title and meaningful axis labels."""
    ax = df.plot(title=title, fontsize=12)
    ax.set_xlabel(xlabel)
    ax.set_ylabel(ylabel)
    plt.show()
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", xlabel="Date", ylabel="Price"):
    ax = df.plot(title=title, fontsize=12)
    ax.set_xlabel(xlabel)
    ax.set_ylabel(ylabel)
    plt.show()
def plot_data ( df , title = "Stock prices" , xlabel = "Date" , ylabel = "Price" ) : ax = df . plot ( title = title , fontsize = 12 ) ax . set_xlabel ( xlabel ) ax . set_ylabel ( ylabel ) plt . show ( )
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
xlabel
ylabel