
数据分析
文章平均质量分 51
weixin_48826751
这个作者很懒,什么都没留下…
展开
-
Python 配置echarts
1.访问echarts实例,选择适合的图表 https://echarts.apache.org/examples/zh/index.html 2.在python中引入该图表样式 (1)建立html文件,同时生成一个div,之后图表要在该div中展示 (2)初始化charts, div中显示echarts图表 <body> <div id="main" style="width:800px;height:600px;background:pink"></div> <原创 2022-04-01 20:42:37 · 2842 阅读 · 0 评论 -
Python Matplotlib基本使用
1.生成画布和实例 import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) #在画布1的位置生成实例对象原创 2022-03-29 18:40:25 · 431 阅读 · 0 评论 -
Numpy常用方法总结
1.创建数组 t1 = np.array(range(1,4)) t1 = np.array([1,2,3]) t1 = np.arange(1,4) 2.指定数据类型 (1)在创建数组时指定: t1 = np.array([1,2,3],dtype=“int64”) (2)在创建后修改数据类型: t1.astype(“int64”) 常见数据类型如下: 序号 数据类型及描述 bool 存储为一个字节的布尔值(真或假) int 默认整数,相当于 C 的long,通常为int32或int64 intc原创 2022-03-12 21:41:54 · 1046 阅读 · 0 评论