Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
342 B
3
Indexable
Never
import matplotlib.pyplot as plt
import pandas as pd

# Assuming your dataset is stored in a pandas DataFrame called 'df'
# If not, you should load your dataset into a DataFrame first

# Create a box plot for the 'age' column
plt.figure(figsize=(8,6))
plt.boxplot(df['age'])
plt.title('Box Plot of Age')
plt.ylabel('Age')
plt.show()
Leave a Comment