text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

import warnings

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import warnings
warnings.filterwarnings('ignore')
df = pd.read_csv('../input/michael-jordan-kobe-bryant-and-lebron-james-stats/allgames_stats.csv')

jordan = df.loc[df['Player'] == 'Michael Jordan']
jordan

kobe = df.loc[df['Player'] == 'Kobe Bryant']
kobe

a4_dims = (11.7, 8.27)
fig, ax = plt.subplots(figsize=a4_dims)

jordan['Date'] = pd.to_datetime(jordan['Date'])
sns.boxplot(jordan['Date'].dt.year, jordan['PTS'], color='red').set_title('Jordan')

a4_dims = (11.7, 8.27)
fig, ax = plt.subplots(figsize=a4_dims)
kobe['Date'] = pd.to_datetime(kobe['Date'])
sns.boxplot(kobe['Date'].dt.year, kobe['PTS'], color='purple').set_title('Kobe')