笔记
import numpy as np
from matplotlib import pyplot as plt
us_file_path = "./data/US_video_data_numbers.csv"
uk_file_path = "./data/GB_video_data_numbers.csv"
t_uk = np.loadtxt(uk_file_path, delimiter=",",dtype="int")
# 选择喜欢数比500000小的数据
t_uk = t_uk[t_uk[:,1]<=500000]
t_uk_comment = t_uk[:,-1]
t_uk_like = t_uk[:,1]
plt.figure(figsize=(20,8),dpi=80)
plt.scatter(t_uk_like,t_uk_comment)
plt.show()