作者:原文W | 来源:互联网 | 2023-05-17 11:44
IamrunningasimulationthatsavessomeresultinafilefromwhichItakethedataIneedandsav
I am running a simulation that saves some result in a file from which I take the data I need and save it in
我正在运行一个模拟,它将一些结果保存到一个文件中,我从该文件中获取所需的数据并将其保存在其中
result.dat
result.dat
like so:
像这样:
SAN.statisticsCollector.Network Response Time
Min: 0.210169
Max: 8781.55
average: 346.966666667
I do all this using python, and it was easy to convert result.dat into an excel file using xlwt. The problem is that creating charts using xlwt is not possible. I than came across Jpype, but installation on my ubuntu 12.04 machine was a headache. I'm probably just being lazy but still - is there any other way, not necessarily python-related, to convert result.dat into an excel file with charts?
我使用python完成所有这些工作,并且很容易转换结果。使用xlwt将dat转换为excel文件。问题是使用xlwt创建图表是不可能的。我遇到了Jpype,但是安装在我的ubuntu 12.04机器上是一件令人头疼的事情。我可能只是有点懒,但是还有其他方法,不一定是与python相关的,来转换结果。在excel文件中添加图表?
Thanks
谢谢
P.s the file I want to create is a spreadsheet, not Microsoft's Excel!
P。我想创建的文件是一个电子表格,而不是微软的Excel!
2 个解决方案