for index in df1.index:
bin_plot(df2, x=index, target='target') #你的绘图语句
path = 'binplt_' + index +'.png' #你想存的路径,并且图片以你绘图的变量为名。
plt.savefig(path
python 三行代码解决绘图保存到本地
最新推荐文章于 2024-01-23 21:25:16 发布
for index in df1.index:
bin_plot(df2, x=index, target='target') #你的绘图语句
path = 'binplt_' + index +'.png' #你想存的路径,并且图片以你绘图的变量为名。
plt.savefig(path