Numpy_arraysetops_EP:Numpy group_by和set-operations

时间:2021-05-14 12:47:56
【文件属性】:
文件名称:Numpy_arraysetops_EP:Numpy group_by和set-operations
文件大小:34KB
文件格式:ZIP
更新时间:2021-05-14 12:47:56
Python 脾气暴躁的索引操作 该软件包包含用于对numpy ndarray进行索引操作的功能,并提供有效的矢量化功能,例如分组和设置操作。 丰富而高效的分组功能: 按键组划分值 按键组减少的值 现有数组设置操作对nd-array的一般化,例如: 独特 联盟 区别 异或(xor) 包含/ in(in1d) 一些新功能: index:numpy等同于list.index count:numpy等价于collections.Counter 模式:在集合中查找最频繁出现的项目 多重性:序列中每个键的出现次数 count_table:类似于R的表格或熊猫交叉表,或者ndim版本的np.bincount 一些简短的例子可以给人留下深刻的印象: # three sets of graph edges (doublet of ints) edges = np . random . randint
【文件预览】:
Numpy_arraysetops_EP-master
----setup.py(1KB)
----.gitignore(3KB)
----.travis.yml(197B)
----LICENSE(1KB)
----Pipfile.lock(15KB)
----examples.py(4KB)
----setup.cfg(26B)
----README.rst(3KB)
----tests()
--------test_grouping.py(5KB)
--------test_indexed.py(8KB)
----Pipfile(206B)
----appveyor.yml(319B)
----version.py(561B)
----.gitattributes(483B)
----numpy_indexed()
--------semantics.py(718B)
--------__init__.py(404B)
--------monkey_patch.py(167B)
--------grouping.py(20KB)
--------arraysetops.py(11KB)
--------index.py(11KB)
--------utility.py(3KB)
--------funcs.py(9KB)

网友评论