text_plain_output_1.png image_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')

players.isnull().sum()

print('Tallest player : {0} - {1} cm'.format(players['height'].idxmax(), players['height'].max()))
print('Smallest player: {0} - {1} cm'.format(players['height'].idxmin(), players['height'].min()))
print()
print('Heaviest player: {0} - {1} kg'.format(players['weight'].idxmax(), players['weight'].max()))
print('Lightest player: {0} - {1} kg'.format(players['weight'].idxmin(), players['weight'].min()))
print()
print('Height average of players: ', players['height'].mean())
print('Weight average of players: ', players['weight'].mean())