text_html_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

players = pd.read_csv('/kaggle/input/nba-players-stats/Players.csv')
seasons_stats = pd.read_csv('/kaggle/input/nba-players-stats/Seasons_Stats.csv')
player_data = pd.read_csv('/kaggle/input/nba-players-stats/player_data.csv')

seasons_stats[seasons_stats.Age > 40][seasons_stats.PTS > 100]

seasons_stats.Pos.value_counts().iloc[0:5]

seasons_stats[seasons_stats.Player == 'LeBron James']

triples = seasons_stats.groupby('Year')['3P'].sum()

seasons_stats.sort_values('3P', ascending=False)[:25]

seasons_stats[seasons_stats.GS < 41].sort_values('MP', ascending=False)[:25]

seasons_stats[seasons_stats.GS > 50][seasons_stats.MP < 1000]

real_players = seasons_stats[seasons_stats.MP > 1000]

real_players.groupby('Pos').mean().sort_values('STL', ascending=False)['STL'].plot.pie()