1 Star 1 Fork 0

Admin/huawei_music

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
analyzes.py 552 Bytes
一键复制 编辑 原始数据 按行查看 历史
Admin 提交于 2021-12-15 09:32 . collect
import matplotlib.pyplot as plt
import pandas as pd
from pylab import mpl
mpl.rcParams['font.sans-serif'] = ['SimHei'] # 解决中文不显示问题
# 打印pandas.DateFrame
class PrintLog:
def __init__(self, path):
self.path = path
self.log = self.load_log()
def load_log(self):
return pd.read_csv(path, sep='\t', names=['Date and Time', 'Name'])
if __name__ == '__main__':
path = 'log.txt'
log = PrintLog(path).log
print(log)
plt.subplot(111)
plt.hist(log)
# plt.legend()
plt.show()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/marx_1_1307066363/huawei_music.git
git@gitee.com:marx_1_1307066363/huawei_music.git
marx_1_1307066363
huawei_music
huawei_music
master

搜索帮助