Dataset = bird strikes on aircraft, available from Kaggle
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv('database.csv')
counts = df['Incident Year'].value_counts(sort=False)
Passing the parameter sort=False ensures the dates on the x axis remain in the correct order, the default value is True which will result is incorrectly ordered dates.
This blog includes:
Scripts mainly in Python with a few in R covering NLP, Pandas, Matplotlib and others. See the home page for links to some of the scripts. Also includes some explanations of basic data science terminology.