Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Age_Distribution.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import pandas as pd
import matplotlib.pyplot as plt

# Load the dataset
df = pd.read_csv('/Users/sarge/Downloads/ad_cleaned.csv')

# Create a histogram
plt.hist(df['Age'], bins=20)

# Set the chart title and axis labels
plt.title('Age Distribution of FIFA 19 Players')
plt.xlabel('Age')
plt.ylabel('Number of Players')

# Show the plot
plt.show()
Binary file added Age_Distribution_vis.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading