如何解决如何使用python pandas为pdf_export制作表格
我有 Json 文件,即 example.json 的附件。我的问题是,如何用 pdf_exports
制作 2 个表表 1
| Servername | Count of unresolved problems |
| ---------- | ---------------------------- |
| Server1 | 1 |
| Server2 | 2 |
表 2
| Servername | Problem description | Occurency |
| ---------- | ----------------------------------------------------------------- | -- |
| Server1 | More than 100 items having missing data for more than 10 minutes | 1 |
| Server2 | Zabbix data sender processes more than 75% busy | 1 |
两个表都可以有不可预测的行。
Json 示例
[
{
"Basic_info": {
"host": "Server1.domain.example","hostid": "10315","name": "Server1"
},"Problems": {
"Count events by trigger": {
"More than 100 items having missing data for more than 10 minutes": 1
},"Count of unresolved problems": 1
},"Technical_info": {
"Available memory": "2.78 GB","Free disk space on /": "47.82 GB","Free disk space on /boot": "709.49 MB","Free disk space on /home": "56.66 GB","Total disk space on /": "49.98 GB","Total disk space on /boot": "1014.0 MB","Total disk space on /home": "56.69 GB","Total memory": "3.63 GB","Used disk space on /": "2.16 GB","Used disk space on /boot": "304.51 MB","Used disk space on /home": "32.22 MB"
}
},{
"Basic_info": {
"host": "Server2.domain.example","hostid": "10415","name": "Server2"
},"Problems": {
"Count events by trigger": {
"Zabbix data sender processes more than 75% busy": 1
},"Count of unresolved problems": 0
},"Technical_info": {
"Available memory": "6.43 GB","Free disk space on /": "52.75 GB","Free disk space on /boot": "653.87 MB","Free disk space on /home": "52.01 GB","Total disk space on /": "55.64 GB","Total disk space on /boot": "975.9 MB","Total disk space on /home": "52.41 GB","Total memory": "7.48 GB","Used disk space on /": "2.89 GB","Used disk space on /boot": "254.83 MB","Used disk space on /home": "406.46 MB"
}
}
]
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。