import matplotlib.pyplot as plt import seaborn as sns # Set the aesthetic style of the plots sns.set_style("whitegrid") # Selecting a subset of columns for plotting histograms # Excluding binary columns for more meaningful histograms hist_columns = ['BMI', 'Age', 'GenHlth', 'MentHlth', 'PhysHlth', 'Education', 'Income'] # Plotting histograms for selected columns plt.figure(figsize=(15, 10)) for i, column in enumerate(hist_columns, 1): plt.subplot(3, 3, i) sns.histplot(data[column], kde=False, bins=30) plt.title(column) plt.tight_layout() plt.show()