Lowest salary players
For this exercise, we'll read the
salaries.csv dataset, that contains salaries of NBA Players (original can be found here).
Your task: Get a list of those players making less than the mean salary (average salary).
import numpy as np import pandas as pd salaries = pd.read_csv('salaries.csv', squeeze=True, index_col=0) players_less_mean = salaries[salaries < salaries.mean()]