Created
January 23, 2024 17:38
-
-
Save romanmichaelpaolucci/5b9bc7e57610919b193b2e77d931105e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plt.figure(figsize=(10, 6)) | |
plt.hist(get_exec_comp("TSLA").drop_duplicates('nameAndPosition')['total']/1000000, bins=30, color='skyblue', edgecolor='black') | |
# Enhancing the plot | |
plt.title('TSLA Salary Distribution (millions)', fontsize=15) | |
plt.xlabel('Salary', fontsize=12) | |
plt.ylabel('Frequency', fontsize=12) | |
plt.grid(True, linestyle='--', alpha=0.7) | |
plt.tight_layout() | |
# Show the plot | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment