- 博客(4)
- 收藏
- 关注
原创 python---pandas库(篇2)
接上文python---pandas库(补充上文matplotlib库中部分作图内容)-优快云博客pandas库DataFrame对象进行数据操作。
2025-02-10 20:10:38
1099
原创 python---pandas库(补充上文matplotlib库中部分作图内容)
matplotlib补充内容柱状图---bar()直方图---hist()饼图---pie()折线图---plot()散点图---scatter()图片读取***---imread()pandas库(篇1)引入库内置数据结构Series创建series对象1、创建series空对象2、通过列表创建series对象3、通过ndarray创建series对象4、通过字典创建series对象 5、通过标量创建series对象访问series数据series常用属性series常用方法head() 和 tail()
2025-02-07 20:07:28
1072
原创 python---matplotlib库
导入模块 常用函数plot()figure()add_axes() legend()处理标题中文乱码add_subplot()subplots()subplot2grid()grid()xscale 和 yscale 函数set_xlim 和 set_ylim 函数set_xticks() 和 set_yticks() 函数twinx 和 twiny 函数附录格式字符串legend()函数loc参数总结 注:也可直接导入matplotlib中的pylab模块,它是pyplot和numpy的组合,可以直接
2025-02-06 20:28:12
1115
原创 python---numpy库(篇2)
数组数据操作resize()append()insert()delete()argwhere()(*) unique()统计函数amin()和amax()ptp()median()mean()average()var() std()总结作用:返回指定形状的新数组语法格式如下: 参数说明arr---要进行操作的数组new_shape---返回的新数组的形状,若元素数量不够,重复数组元素来填充新的形状 append() 作用:在数组的末尾添加值,返回一个一维数组语法格式如下: 参数说明
2025-02-05 19:53:19
938
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅