
python 知识小点
文章平均质量分 69
Rachel MuZy
凡心所向,素履以往;生如逆旅,一苇以航——珞珈山的小村民
展开
-
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boo
报错IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices解决原创 2023-01-04 11:14:50 · 22346 阅读 · 3 评论 -
【知识点】数据可视化——条形图与折线图的组合图
写论文时,需要将条形图与折线图画在一起,有时候他们共用同一个纵坐标、有时是分开的。这两种情况分别如何处理?原创 2022-11-21 19:36:20 · 3495 阅读 · 0 评论 -
【bug解决】AttributeError: module ‘tensorflow‘ has no attribute ‘truncated_normal‘
AttributeError: module 'tensorflow' has no attribute 'truncated_normal'原创 2022-11-07 21:22:27 · 6348 阅读 · 0 评论 -
【知识点】pandas中的del用法
pandas中的del函数能够删除特定的列。原创 2022-10-06 16:04:52 · 2311 阅读 · 0 评论 -
【知识点】np.where()用法
传递给np.where 的参数既可以是同等大小的数组,也可以是标量。当不传递参数,只传递条件时,输出的是满足条件的坐标。原创 2022-09-22 16:49:15 · 44255 阅读 · 2 评论 -
【知识点】eval() 的用法
eval () 作用 只去掉最外层引号eval()的参数形式为字符串或字符串变量,在程序中可以将字符串形式的输入值转化为数字进行计算。原创 2022-09-18 15:33:14 · 21010 阅读 · 0 评论 -
【知识点】np.random.randn()
【知识点】np.random.randn()的应用原创 2022-09-12 17:53:44 · 4137 阅读 · 0 评论 -
【bug解决】TypeError: forward() missing 1 required positional argument: ‘x‘
【bug解决】TypeError: forward() missing 1 required positional argument: 'x' 。类的实例化原创 2022-09-04 22:33:17 · 16171 阅读 · 1 评论 -
【bug解决】AxisError: axis 1 is out of bounds for array of dimension 1
【bug解决】AxisError: axis 1 is out of bounds for array of dimension 1原创 2022-08-23 16:40:44 · 18354 阅读 · 0 评论 -
【自学】python初学 LESSON 9<数据可视化——下载数据2>
今天学习制作全球地震散点图:JSON格式原创 2022-08-17 15:32:23 · 398 阅读 · 0 评论 -
【自学】python初学 LESSON 8 <数据可视化——下载数据1>
【自学】python初学 LESSON 8 使用CSV来处理CSV格式存储天气数据,找出两个地区在一段时间内的最高温度和最低温度。然后使用MATPLOTLIB根据下载的数据创建一个图表,展示温度变化。原创 2022-08-06 17:07:25 · 424 阅读 · 0 评论 -
【自学】python初学 LESSON 7 <数据可视化——生成数据2>
【自学】python初学 LESSON 7 <数据可视化——生成数据2>随机漫步和使用PLOTLY模拟掷骰子。原创 2022-08-05 17:07:01 · 486 阅读 · 1 评论 -
【自学】python初学 LESSON 4 <数据可视化——生成数据>
【自学】python初学 LESSON 4 <数据可视化——生成数据>原创 2022-07-29 17:00:39 · 618 阅读 · 0 评论 -
【自学】python初学LESSON2 <类>
【自学】python初学LESSON2原创 2022-07-27 19:56:37 · 215 阅读 · 0 评论 -
【自学】python初学LESSON 1 <函数>
【自学】python初学LESSON 1 <函数>原创 2022-07-26 23:31:58 · 1092 阅读 · 1 评论