Your Code: Enclose your code in 3 backticks
like this to format properly:
import pandas as pd import matplotlib.pyplot as plt unrate = pd.read_csv('unrate.csv') unrate['DATE'] = pd.to_datetime(unrate['DATE']) first_twelve = unrate[0:12] plt.plot(first_twelve["DATE"], first_twelve["VALUE"]) plt.xticks(rotation = 90) plt.xlabel("Month") plt.ylabel("Unemployment Rate") plt.title("Monthly Unemployment Trends, 1948")``` I expected that a graph with x ticks labels in format date-month-year. But, the graph had x ticks labels as the name of the month followed by the year, e.g. Jan 1964. How does this work? Why the date of that x tick label is not showing?