How often does the oldest person alive die?

Question

You are given the following dataset containing a list of the oldest people (along with their date of death) since 1955. You can read more about the data here.

Using this dataset, write code to compute how often the oldest person alive dies (length of time they were recognized as oldest person before passing away and being replaced by a new oldest person). Visualize this information for a stakeholder.

# Here is code to pull the dataset and relevant libraries 
# into a Google Colab or Jupyter notebook to help get you started
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
oldest_person_data = pd.read_csv('https://raw.githubusercontent.com/erood/interviewqs.com_code_snippets/master/Datasets/oldest_person_dataset.csv')

Solution

Access restricted

Subscribe to premium account to see the solution.

Get premium now