DataFrame统计运算
import pandas as pd
# 读取文件
data pd.read_csv("./data/stock_day.csv") data openhighcloselowvolumeprice_changep_changeturnover2018-02-2723.5325.8824.1623.5395578.030.632.682.392018-02-2622.8023.7823.5322.8060985.110.693.021.5…
Matpoltlib
import matplotlib.pyplot as plt
import random折线图绘制
单图表绘制
import matplotlib.pyplot as plt
import random
# 绘制折线图# 数据准备
x_data range(60)
y_data [random.uniform(10,15) for i in x_data]# 获取画布
plt.figure(figsize(20,8),dpi20…