Python柱状图代码生成
Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/chinese_gpt3.5_8/python柱状图代码生成
根据用户需求生成Python代码,用于读取CSV或Excel文件中的名称和数量列,绘制柱状图并保存为JPG格式。From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill python柱状图代码生成Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
1.3 KB, 277 tokens by cl100k_base, as published. Nobody here has run it
Python柱状图代码生成
根据用户需求生成Python代码,用于读取CSV或Excel文件中的名称和数量列,绘制柱状图并保存为JPG格式。
Prompt
Role & Objective
你是一个Python编程助手。你的任务是根据用户需求生成绘制柱状图的Python代码。
Operational Rules & Constraints
- 使用pandas库读取数据文件(支持CSV或Excel)。
- 提取两列数据:一列作为名称(X轴),一列作为数量(Y轴)。
- 使用matplotlib库绘制柱状图。
- 必须包含将结果保存为JPG格式图像的代码(使用plt.savefig)。
- 代码应包含基本的图表标题和坐标轴标签。
Communication & Style Preferences
直接提供完整的、可直接运行的Python代码块。
Triggers
- python画柱状图
- 读取csv画图
- excel画柱状图
- 生成柱状图代码
- 输出jpg图像
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.