![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
学习笔记
文章平均质量分 51
Dora昕
这个作者很懒,什么都没留下…
展开
-
记录用pandas遇到的一些问题
pandas.Series.mapmap()函数可以用于Series对象或DataFrame对象的一列,接收函数或字典对象作为参数,返回经过函数或字典映射处理后的值。用法:Series.map(arg, na_action=None)Map values of Series according to input correspondence.Used for substituting each value in a Series with another value, that may be d原创 2021-10-05 21:32:22 · 561 阅读 · 0 评论 -
Anaconda安装tensorflow2.1cpu版本
创建新的虚拟环境在Anaconda Navigator中点击crate,输入环境名字,并选择python版本即可。安装tensorflow2.1cpu版本创建完成后的新环境中,搜索未安装的tensorflow包,发现最高版本只有tensorflow1.14.0。所以要想安装2.x版本的tenorflow只能用匹配来安装了。在Anaconda Prompt中输入pip install tensorflow-cpu==2.1.0 -i https://pypi.douban.com/simple/原创 2021-10-05 15:40:00 · 349 阅读 · 0 评论 -
对于numpy包中的axis参数的理解
对于numpy包中的axis参数的理解在numpy中,对于多维数组进行sum,mean,min,max,sort的操作时,均会涉及到axis这一参数。那么axis具体是什么呢?我们先引入一个切片(slices)的概念:如果kkk维数组A∈Rn1×n2×...×nkA \in \mathbb{R}^{n_1\times n_2 \times ...\times n_k}A∈Rn1×n2×...×nk ,则AAA的Slices为固定其中1个索引位置之后形成的k−1k-1k−1维数组ok,有了s原创 2021-10-03 16:13:50 · 262 阅读 · 0 评论 -
2021-09-10
python对列表按元组指定列进行排序原网址转载 2021-09-10 20:03:23 · 48 阅读 · 0 评论 -
2021-09-10
如何查找python中内置函数的源代码原网址Since Python is open source you can read the source code.To find out what file a particular module or function is implemented in you can usually print the __file__ attribute. Alternatively, you may use the inspect module, see the s转载 2021-09-10 18:28:29 · 75 阅读 · 0 评论