Skip to content

Instantly share code, notes, and snippets.

@rsalaza4
Created October 15, 2022 23:27
Show Gist options
  • Select an option

  • Save rsalaza4/d045bc7f18325609b01e99d43576ea56 to your computer and use it in GitHub Desktop.

Select an option

Save rsalaza4/d045bc7f18325609b01e99d43576ea56 to your computer and use it in GitHub Desktop.
# Set matplotlib style
plt.style.use('ggplot')
# Plot linechart
plt.figure(figsize=(20,7))
plt.plot(employees_df, "--o", c= "grey")
plt.xlabel("Date")
plt.ylabel("Count of Active Employees")
plt.title("Employees Growth Over Time")
plt.xticks(employees_df.index, rotation=90)
for a,b in zip(employees_df.index, employees_df["Count Active Employees"]):
plt.text(a, b, str(b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment