一图看懂 numpy 库结构:资料整理+笔记(大全)

本文由 大侠(AhcaoZhu)原创,转载请声明。
链接: https://blog.csdn.net/Ahcao2008

Alt

一图看懂 numpy 库结构:资料整理+笔记(大全)

  • constants
  • sys
  • module
  • class
  • function
  • builtin_function_or_method
  • other
  • residual

【简介】全文介绍 numpy 的整体架构,包括模块、函数、类及类的方法和属性。它改变了第三版以前直接取材于原码的方式,而是采用 inspect的方法和技术,我尽可能地做到与系统的help(numpy)输出保持一致,但是在各对象类别的范围界定上,兼顾了实用和完整性。大部分doc经网络人工智能翻译 + 人工校对。是一部不可多得的权威字典类工具书。它是续集的一部分。后续陆续发布、敬请关注。【原创】 大侠Ahcao
以下来自于:zjgPyObj(numpy) ver4.0,英文为网络机器自动翻译(有道)+ 人工校对。
numpy

说明:
本文共收录:

类别数量
constants常量49
sys系统18
module模块18
class类97(类的方法、属性将在分结构中展开)
function函数272
builtins内嵌23
other其它113(不太重要或能用的继承)
residual特定24
total合计604(仅一、二级目录)三级目录43K行,另文给出。

constants

0001	int	ERR_WARN	1
0002	int	FPE_UNDERFLOW	4
0003	int	ERR_PRINT	4
0004	int	ERR_LOG	5
0005	int	ERR_CALL	3
0006	int	SHIFT_INVALID	9
0007	int	UFUNC_BUFSIZE_DEFAULT	8192
0008	int	tracemalloc_domain	389047
0009	int	MAY_SHARE_BOUNDS	0
0010	int	ERR_RAISE	2
0011	int	use_hugepage	1
0012	int	FPE_DIVIDEBYZERO	1
0013	int	SHIFT_UNDERFLOW	6
0014	int	ERR_DEFAULT	521
0015	int	RAISE	2
0016	int	BUFSIZE	8192
0017	int	CLIP	0
0018	int	ALLOW_THREADS	1
0019	int	FPE_INVALID	8
0020	int	WRAP	1
0021	int	SHIFT_OVERFLOW	3
0022	int	MAY_SHARE_EXACT	-1
0023	int	FPE_OVERFLOW	2
0024	int	ERR_IGNORE	0
0025	int	MAXDIMS	32
0026	int	FLOATING_POINT_SUPPORT	1
0027	int	SHIFT_DIVIDEBYZERO	0
0028	bool	little_endian	True
0029	float	inf	inf
0030	float	nan	nan
0031	float	NINF	-inf
0032	float	PINF	inf
0033	float	pi	3.141592653589793
0034	float	NAN	nan
0035	float	PZERO	0.0
0036	float	NaN	nan
0037	float	Infinity	inf
0038	float	e	2.718281828459045
0039	float	euler_gamma	0.5772156649015329
0040	float	NZERO	-0.0
0041	float	Inf	inf
0042	float	infty	inf
0043	str	oldnumeric	removed
0044	str	numarray	removed
0045	str	UFUNC_PYVALS_NAME	UFUNC_PYVALS
0046	tuple	ScalarType	(, ,...)
0047	dict	sctypeDict	{'?': , 0: ,...}
0048	dict	sctypes	{'int': [, , ...}

sys

0050	str	__name__	numpy
0051	str	__doc__	...
0052	str	__package__	numpy
0053	SourceFileLoader	__loader__	<_frozen_importlib_external.SourceFileLoader object at 0x00000000038F2088>
0054	ModuleSpec	__spec__	ModuleSpec(name='numpy', loader=<...>, origin='...\\__init__.py', submodule_search_locations=['...\\numpy'])
0055	list	__path__	['〖pyLibpath〗\\site-packages\\numpy']
0056	str	__file__	〖pyLibpath〗\site-packages\numpy\__init__.py
0057	str	__cached__	〖pyLibpath〗\site-packages\numpy\__pycache__\__init__.cpython-37.pyc
0058	dict	__builtins__	{...}
0059	bool	__NUMPY_SETUP__	False
0060	module	__config__	
0061	list	__all__	['ModuleDeprecationWarning', 'VisibleDeprecationWarning', ...]
0062	str	__version__	1.21.6
0063	str	__git_version__	ef0ec786fd4c7622ad2fa0e54d3881f3b9bbd792
0064	dict	__deprecated_attrs__	{'object': (,...}
0065	dict	__expired_functions__	{'fv': '...', ...}
0066	function	__getattr__	
0067	function	__dir__	

module

0068	module	char	
0069	module	compat	
0070	module	core	
0071	module	ctypeslib	
0072	module	emath	
0073	module	fft	
0074	module	lib	
0075	module	linalg	
0076	module	ma	
0077	module	math	
0078	module	matrixlib	
0079	module	os	
0080	module	polynomial	
0081	module	random	
0082	module	rec	
0083	module	sys	
0084	module	version	
0085	module	warnings	

class

0086	type	AxisError	
0087	type	Bytes0	
0088	type	ComplexWarning	
0089	type	DataSource	
0090	type	Datetime64	
0091	type	MachAr	
0092	type	ModuleDeprecationWarning	
0093	type	RankWarning	
0094	type	Str0	
0095	type	TooHardError	
0096	type	Uint64	
0097	type	VisibleDeprecationWarning	
0098	type	bool8	
0099	type	bool_	
0100	type	broadcast	
0101	type	busdaycalendar	
0102	type	byte	
0103	type	bytes0	
0104	type	bytes_	
0105	type	cdouble	
0106	type	cfloat	
0107	type	character	
0108	type	chararray	
0109	type	clongdouble	
0110	type	clongfloat	
0111	type	complex128	
0112	type	complex64	
0113	type	complex_	
0114	type	complexfloating	
0115	type	csingle	
0116	type	datetime64	
0117	type	double	
0118	_DTypeMeta	dtype	
0119	type	errstate	
0120	type	finfo	
0121	type	flatiter	
0122	type	flexible	
0123	type	float16	
0124	type	float32	
0125	type	float64	
0126	type	float_	
0127	type	floating	
0128	type	format_parser	
0129	type	generic	
0130	type	half	
0131	type	iinfo	
0132	type	inexact	
0133	type	int0	
0134	type	int16	
0135	type	int32	
0136	type	int64	
0137	type	int8	
0138	type	int_	
0139	type	intc	
0140	type	integer	
0141	type	intp	
0142	type	longcomplex	
0143	type	longdouble	
0144	type	longfloat	
0145	type	longlong	
0146	type	matrix	
0147	type	memmap	
0148	type	ndarray	
0149	type	ndenumerate	
0150	type	ndindex	
0151	type	nditer	
0152	type	number	
0153	type	object0	
0154	type	object_	
0155	type	poly1d	
0156	type	recarray	
0157	type	record	
0158	type	short	
0159	type	signedinteger	
0160	type	single	
0161	type	singlecomplex	
0162	type	str0	
0163	type	str_	
0164	type	string_	
0165	type	timedelta64	
0166	type	ubyte	
0167	type	ufunc	
0168	type	uint	
0169	type	uint0	
0170	type	uint16	
0171	type	uint32	
0172	type	uint64	
0173	type	uint8	
0174	type	uintc	
0175	type	uintp	
0176	type	ulonglong	
0177	type	unicode_	
0178	type	unsignedinteger	
0179	type	ushort	
0180	type	vectorize	
0181	type	void	
0182	type	void0	

function

0183	function	alen	
0184	function	all	
0185	function	allclose	
0186	function	alltrue	
0187	function	amax	
0188	function	amin	
0189	function	angle	
0190	function	any	
0191	function	append	
0192	function	apply_along_axis	
0193	function	apply_over_axes	
0194	function	argmax	
0195	function	argmin	
0196	function	argpartition	
0197	function	argsort	
0198	function	argwhere	
0199	function	around	
0200	function	array2string	
0201	function	array_equal	
0202	function	array_equiv	
0203	function	array_repr	
0204	function	array_split	
0205	function	array_str	
0206	function	asarray_chkfinite	
0207	function	asfarray	
0208	function	asmatrix	
0209	function	asscalar	
0210	function	atleast_1d	
0211	function	atleast_2d	
0212	function	atleast_3d	
0213	function	average	
0214	function	bartlett	
0215	function	base_repr	
0216	function	binary_repr	
0217	function	bincount	
0218	function	blackman	
0219	function	block	
0220	function	bmat	
0221	function	broadcast_arrays	
0222	function	broadcast_shapes	
0223	function	broadcast_to	
0224	function	busday_count	
0225	function	busday_offset	
0226	function	can_cast	
0227	function	choose	
0228	function	clip	
0229	function	column_stack	
0230	function	common_type	
0231	function	compress	
0232	function	concatenate	
0233	function	convolve	
0234	function	copy	
0235	function	copyto	
0236	function	corrcoef	
0237	function	correlate	
0238	function	count_nonzero	
0239	function	cov	
0240	function	cross	
0241	function	cumprod	
0242	function	cumproduct	
0243	function	cumsum	
0244	function	datetime_as_string	
0245	function	delete	
0246	function	diag	
0247	function	diag_indices	
0248	function	diag_indices_from	
0249	function	diagflat	
0250	function	diagonal	
0251	function	diff	
0252	function	digitize	
0253	function	dot	
0254	function	dsplit	
0255	function	dstack	
0256	function	ediff1d	
0257	function	einsum	
0258	function	einsum_path	
0259	function	empty_like	
0260	function	expand_dims	
0261	function	extract	
0262	function	eye	
0263	function	fill_diagonal	
0264	function	find_common_type	
0265	function	fix	
0266	function	flatnonzero	
0267	function	flip	
0268	function	fliplr	
0269	function	flipud	
0270	function	format_float_positional	
0271	function	format_float_scientific	
0272	function	fromfunction	
0273	function	fromregex	
0274	function	full	
0275	function	full_like	
0276	function	genfromtxt	
0277	function	geomspace	
0278	function	get_printoptions	
0279	function	getbufsize	
0280	function	geterr	
0281	function	geterrcall	
0282	function	gradient	
0283	function	hamming	
0284	function	hanning	
0285	function	histogram	
0286	function	histogram2d	
0287	function	histogram_bin_edges	
0288	function	histogramdd	
0289	function	hsplit	
0290	function	hstack	
0291	function	i0	
0292	function	identity	
0293	function	imag	
0294	function	in1d	
0295	function	indices	
0296	function	info	
0297	function	inner	
0298	function	insert	
0299	function	interp	
0300	function	intersect1d	
0301	function	is_busday	
0302	function	isclose	
0303	function	iscomplex	
0304	function	iscomplexobj	
0305	function	isfortran	
0306	function	isin	
0307	function	isneginf	
0308	function	isposinf	
0309	function	isreal	
0310	function	isrealobj	
0311	function	isscalar	
0312	function	issctype	
0313	function	issubclass_	
0314	function	issubdtype	
0315	function	issubsctype	
0316	function	iterable	
0317	function	ix_	
0318	function	kaiser	
0319	function	kron	
0320	function	lexsort	
0321	function	linspace	
0322	function	load	
0323	function	loads	
0324	function	loadtxt	
0325	function	logspace	
0326	function	lookfor	
0327	function	mask_indices	
0328	function	mat	
0329	function	max	
0330	function	maximum_sctype	
0331	function	may_share_memory	
0332	function	mean	
0333	function	median	
0334	function	meshgrid	
0335	function	min	
0336	function	min_scalar_type	
0337	function	mintypecode	
0338	function	moveaxis	
0339	function	msort	
0340	function	nan_to_num	
0341	function	nanargmax	
0342	function	nanargmin	
0343	function	nancumprod	
0344	function	nancumsum	
0345	function	nanmax	
0346	function	nanmean	
0347	function	nanmedian	
0348	function	nanmin	
0349	function	nanpercentile	
0350	function	nanprod	
0351	function	nanquantile	
0352	function	nanstd	
0353	function	nansum	
0354	function	nanvar	
0355	function	ndim	
0356	function	nonzero	
0357	function	obj2sctype	
0358	function	ones	
0359	function	ones_like	
0360	function	outer	
0361	function	packbits	
0362	function	pad	
0363	function	partition	
0364	function	percentile	
0365	function	piecewise	
0366	function	place	
0367	function	poly	
0368	function	polyadd	
0369	function	polyder	
0370	function	polydiv	
0371	function	polyfit	
0372	function	polyint	
0373	function	polymul	
0374	function	polysub	
0375	function	polyval	
0376	function	printoptions	
0377	function	prod	
0378	function	product	
0379	function	ptp	
0380	function	put	
0381	function	put_along_axis	
0382	function	putmask	
0383	function	quantile	
0384	function	ravel	
0385	function	ravel_multi_index	
0386	function	real	
0387	function	real_if_close	
0388	function	repeat	
0389	function	require	
0390	function	reshape	
0391	function	resize	
0392	function	result_type	
0393	function	roll	
0394	function	rollaxis	
0395	function	roots	
0396	function	rot90	
0397	function	round	
0398	function	round_	
0399	function	row_stack	
0400	function	save	
0401	function	savetxt	
0402	function	savez	
0403	function	savez_compressed	
0404	function	sctype2char	
0405	function	searchsorted	
0406	function	select	
0407	function	set_printoptions	
0408	function	setbufsize	
0409	function	setdiff1d	
0410	function	seterr	
0411	function	seterrcall	
0412	function	setxor1d	
0413	function	shape	
0414	function	shares_memory	
0415	function	sinc	
0416	function	size	
0417	function	sometrue	
0418	function	sort	
0419	function	sort_complex	
0420	function	source	
0421	function	split	
0422	function	squeeze	
0423	function	stack	
0424	function	std	
0425	function	sum	
0426	function	swapaxes	
0427	function	take	
0428	function	take_along_axis	
0429	function	tensordot	
0430	function	tile	
0431	function	trace	
0432	function	transpose	
0433	function	trapz	
0434	function	tri	
0435	function	tril	
0436	function	tril_indices	
0437	function	tril_indices_from	
0438	function	trim_zeros	
0439	function	triu	
0440	function	triu_indices	
0441	function	triu_indices_from	
0442	function	typename	
0443	function	union1d	
0444	function	unique	
0445	function	unpackbits	
0446	function	unravel_index	
0447	function	unwrap	
0448	function	vander	
0449	function	var	
0450	function	vdot	
0451	function	vsplit	
0452	function	vstack	
0453	function	where	
0454	function	zeros_like	

builtin_function_or_method

0455	builtin_function_or_method	add_docstring	
0456	builtin_function_or_method	add_newdoc_ufunc	
0457	builtin_function_or_method	arange	
0458	builtin_function_or_method	array	
0459	builtin_function_or_method	asanyarray	
0460	builtin_function_or_method	asarray	
0461	builtin_function_or_method	ascontiguousarray	
0462	builtin_function_or_method	asfortranarray	
0463	builtin_function_or_method	compare_chararrays	
0464	builtin_function_or_method	datetime_data	
0465	builtin_function_or_method	empty	
0466	builtin_function_or_method	fastCopyAndTranspose	
0467	builtin_function_or_method	frombuffer	
0468	builtin_function_or_method	fromfile	
0469	builtin_function_or_method	fromiter	
0470	builtin_function_or_method	frompyfunc	
0471	builtin_function_or_method	fromstring	
0472	builtin_function_or_method	geterrobj	
0473	builtin_function_or_method	nested_iters	
0474	builtin_function_or_method	promote_types	
0475	builtin_function_or_method	set_numeric_ops	
0476	builtin_function_or_method	seterrobj	
0477	builtin_function_or_method	zeros	

other

0478	ufunc	absolute	
0479	ufunc	subtract	
0480	ufunc	conjugate	
0481	ufunc	degrees	
0482	ufunc	remainder	
0483	ufunc	isfinite	
0484	ufunc	divmod	
0485	ufunc	negative	
0486	ufunc	logaddexp	
0487	ufunc	matmul	
0488	ufunc	sign	
0489	ufunc	fmin	
0490	ufunc	add	
0491	ufunc	isnan	
0492	ufunc	rint	
0493	ufunc	cbrt	
0494	ufunc	log1p	
0495	ufunc	exp	
0496	ufunc	mod	
0497	ufunc	isinf	
0498	ufunc	floor	
0499	ufunc	modf	
0500	ufunc	hypot	
0501	OGridClass	ogrid	
0502	ufunc	minimum	
0503	ufunc	floor_divide	
0504	ufunc	heaviside	
0505	_typedict	cast	{:  at 0x0000000003EBFE58>, ...}
0506	ufunc	fmod	
0507	ufunc	logical_or	
0508	ufunc	gcd	
0509	ufunc	fmax	
0510	ufunc	signbit	
0511	ufunc	abs	
0512	ufunc	arccos	
0513	ufunc	arctan	
0514	ufunc	reciprocal	
0515	ufunc	sinh	
0516	ufunc	ldexp	
0517	ufunc	logical_not	
0518	ufunc	arccosh	
0519	ufunc	fabs	
0520	ufunc	spacing	
0521	ufunc	conj	
0522	ufunc	logaddexp2	
0523	ufunc	arcsin	
0524	ufunc	right_shift	
0525	ufunc	true_divide	
0526	ufunc	arctan2	
0527	ufunc	less_equal	
0528	_typedict	nbytes	{: 1, : 1, : 1, : 2, : 2, : 4, : 4, : 8, : 8, : 4, : 4, : 2, : 4, : 8, : 8, : 8, : 16, : 16, : 8, : 0, : 0, : 0, : 8, : 8}
0529	ufunc	arctanh	
0530	ufunc	exp2	
0531	ufunc	bitwise_and	
0532	MGridClass	mgrid	
0533	ufunc	trunc	
0534	ufunc	ceil	
0535	ufunc	left_shift	
0536	IndexExpression	index_exp	
0537	ufunc	lcm	
0538	ufunc	greater_equal	
0539	ufunc	sin	
0540	ufunc	tan	
0541	ufunc	radians	
0542	ufunc	isnat	
0543	ufunc	expm1	
0544	ufunc	bitwise_not	
0545	ufunc	bitwise_xor	
0546	ufunc	greater	
0547	ufunc	log	
0548	ufunc	log10	
0549	ufunc	multiply	
0550	ufunc	rad2deg	
0551	ufunc	sqrt	
0552	IndexExpression	s_	
0553	bool_	True_	True
0554	ufunc	cosh	
0555	ufunc	arcsinh	
0556	ufunc	nextafter	
0557	ufunc	log2	
0558	ufunc	equal	
0559	ufunc	deg2rad	
0560	ufunc	cos	
0561	ufunc	logical_xor	
0562	ufunc	invert	
0563	ufunc	less	
0564	ufunc	frexp	
0565	PytestTester	test	
0566	ufunc	tanh	
0567	ufunc	not_equal	
0568	ufunc	positive	
0569	ufunc	maximum	
0570	NoneType	newaxis	None
0571	ufunc	copysign	
0572	ufunc	power	
0573	ufunc	square	
0574	bool_	False_	False
0575	RClass	r_	
0576	ufunc	divide	
0577	ufunc	float_power	
0578	ufunc	logical_and	
0579	CClass	c_	
0580	ufunc	bitwise_or	

residual

0581	_NoValueType	_NoValue	
0582	PyCapsule	_UFUNC_API	
0583	builtin_function_or_method	_add_newdoc_ufunc	
0584	module	_distributor_init	
0585	list	_financial_names	['fv', 'ipmt', 'irr', 'mirr', 'nper', 'npv', 'pmt', 'ppmt', 'pv', 'rate']
0586	module	_globals	
0587	module	_mat	
0588	module	_pytesttester	
0589	module	_version	
0590	function	add_newdoc	
0591	function	byte_bounds	
0592	function	deprecate	
0593	function	deprecate_with_doc	
0594	function	disp	
0595	function	get_array_wrap	
0596	function	get_include	
0597	function	mafromtxt	
0598	function	ndfromtxt	
0599	function	recfromcsv	
0600	function	recfromtxt	
0601	function	safe_eval	
0602	function	set_string_function	
0603	function	show_config	
0604	function	who	


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部