df.set_index("date")["amount"].plot(figsize=(8, 4), title="Daily Revenue")
df.set_index("date")[["amount", "forecast"]].plot()
df["amount"].plot(kind="line")
df["amount"].plot(kind="hist", bins=30)
df["region"].value_counts().plot(kind="bar")
df["region"].value_counts().plot(kind="pie") # use sparingly!
df.plot(kind="scatter", x="qty", y="amount")
pivot = df.pivot_table(index="region", columns="quarter",
values="amount", aggfunc="sum")
pivot.plot(kind="bar")
pivot.plot(kind="bar", stacked=True)
df.plot() is the quickest path from data to chart.kind= picks the chart type.Pivot orders by region (rows) and quarter (columns). Plot the result as a grouped bar chart.