matplotlib.pyplot箱线图绘制
读取csv数据,并画出箱线图
import matplotlib.pyplot as plt
import pandas as pd
def draw_box(csv_file_path):
data = pd.read_csv(csv_file_path, encoding='utf-8')
plt.rc('font', family='Times New Roman')
data = data.iloc[:, 1:]
data.plot.box(title="difficulty rating")
plt.grid(linestyle="--", alpha=0.3)
plt.savefig('./results_imgs.png', bbox_inches='tight', dpi=300)
每天快乐敲代码,快乐生活
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 字符编码:从基础到乱码解决
· 提示词工程——AI应用必不可少的技术