Tạo biểu đồ phân tán

Nhập môn Khoa học Dữ liệu với Python

Hillary Green-Lerman

Lead Data Scientist, Looker

Lập bản đồ tín hiệu điện thoại di động

Nhập môn Khoa học Dữ liệu với Python

Biểu đồ phân tán là gì?

Nhập môn Khoa học Dữ liệu với Python

Biểu đồ phân tán là gì?

Nhập môn Khoa học Dữ liệu với Python

Tạo biểu đồ phân tán

plt.scatter(df.age, df.height)
plt.xlabel('Age (in months)')
plt.ylabel('Height (in inches)')

plt.show()

Nhập môn Khoa học Dữ liệu với Python

Tham số từ khóa

plt.scatter(df.age, df.height,
            color='green',
            marker='s')

Nhập môn Khoa học Dữ liệu với Python

Điều chỉnh độ trong suốt của marker

plt.scatter(df.x_data,
            df.y_data,
            alpha=0.1)

Nhập môn Khoa học Dữ liệu với Python

Vamos praticar!

Nhập môn Khoa học Dữ liệu với Python

Preparing Video For Download...