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

df = pd.read_csv('/kaggle/input/videogamesales/vgsales.csv')
df

over10000 = df[df['Global_Sales'] > 0.01]
over10000

na_median_sales = over10000['NA_Sales'].median()

ten_games_surrounding_median = over10000[over10000['NA_Sales'].between(na_median_sales - 0.5, na_median_sales + 0.5)][['Name', 'NA_Sales']]
ten_games_surrounding_median = ten_games_surrounding_median.sort_values('NA_Sales', ascending=False)
print('Ten games surrounding the median sales output for North American video game sales:')
print(ten_games_surrounding_median)