top of page

Daily Show Guests' occupation

  • Writer: saman aboutorab
    saman aboutorab
  • Jan 3, 2024
  • 1 min read

Updated: Jan 8, 2024

In this data visualization project, our objective is to explore and analyze the evolution of guest occupations on the Daily Show from 1999 to 2015. To achieve this, we will leverage data spanning these years to discern trends and patterns in the occupational backgrounds of the show's guests. The dataset will likely contain information about the guests' professions or roles, allowing us to categorize them into different occupational groups. Using tools such as line charts, bar graphs, or heatmaps, we can visually represent the changes in the distribution of guest occupations over the specified time period. This project offers insights into the evolving landscape of the Daily Show's guest lineup, shedding light on the diversity and representation of various professional fields. Through effective data visualization, we aim to present a compelling narrative that captures the dynamic nature of the show's guests and their occupational backgrounds across the years.



import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
df = pd.read_csv('daily_show_guests_cleaned.csv')
print(df.head())
sns.set_palette("Blues")
# Create the crosstab DataFrame
pd_crosstab = pd.crosstab(df["Group"], df["YEAR"])

# Plot a heatmap of the table with no color bar and using the BuGn palette
sns.heatmap(pd_crosstab, cbar=False, cmap="BuGn", linewidths=0.3)

# Rotate tick marks for visibility
plt.yticks(rotation=0)
plt.xticks(rotation=90)

#Show the plot
plt.show()
plt.clf()

Comments


bottom of page