Код: Выделить всё
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
var = pd.read_excel("C:\Program Files\currentnbaplayerslist.xlsx")
print(var)
x = list(var['Height'])
y = list(var['Weight'])
plt.figure(figsize=(10,10))
plt.style.use('ggplot')
plt.scatter(x,y,marker="o",s=100,edgecolors="white",c="green")
plt.title("NBA players' height/weight")
plt.xlabel("Height")
plt.ylabel("Weight")
plt.gcf().autofmt_xdate()
plt.show()

Подробнее здесь: https://stackoverflow.com/questions/724 ... s-in-order
Мобильная версия