[python] numpy library array splicing np.concatenate official document details and examples
In practice, we often encounter the problem of array splicing. concatenate based on numpy library is a very useful array operation function.
1,concatenate((a1, a2, … ), axis=0) details of official documents
concatenate(...)
concatenate((a1, a2, ...), axis=0)
Join a sequence of arrays along an existing axis.
Parameters
...
Added by Christian B. on Tue, 05 May 2020 23:47:35 +0300
pandas advanced use group aggregation
Article directory
Grouping and aggregation
1. GroupBy object
·Parameters in the groupedby function:
GroupBy object group iteration = = = "traversal"
Other grouping methods
polymerization
Grouping operation
Group and align
Statistical calculation yao differential aggregation aggreg ...
Added by JCF22Lyoko on Fri, 13 Mar 2020 14:49:33 +0200
Pytorch learning notes: the dimension transformation of pytorch Foundation
Pytorch learning notes (5) -- dimensional transformation of pytorch Foundation
Catalog
view/reshape
Add / delete dimensions - squeeze / unssqueeze
Dimension extension - Expand/repeat
Dimension transpose ---- transpose/t/permute
Catalog
view/reshape
The usage of view is basically the same as ...
Added by swizzer on Sun, 02 Feb 2020 12:46:14 +0200
Molding with cycler
Article directory
cycler
Course
Function link
matplotlib Tutorial notes
cycler
Before we start the tutorial, we need to understand the cycle module
from __future__ import print_function
from cycler import cycler
color_cycler = cycler(color=["r", "g", "b"]) #You can create a cycle object with cycle
color_cycler
'col ...
Added by p0pb0b on Sun, 10 Nov 2019 17:48:45 +0200
Definition and use of python function
Definition and Creation of Functions Function is the basic program structure provided by Python to maximize code reuse and minimize code redundancy; it allows programmers toComplex systems are decomposed into manageable components. Four functions can be created in Python:Global functions: defined in templatesLocal functions: nested in oth ...
Added by sayedsohail on Sun, 14 Jul 2019 21:58:02 +0300
Explanation and application of python argparse Library
argparse is a library for parsing command-line options, parameters, and subcommands
Source code comes from Lib/argparse.py
Main functions:
1. Make it easy for users to write command lines
2. argparse knows how to parse these parameters from sys.argv for the parameters required by the program.
3. Aiming at the invalid parameters given to t ...
Added by lrdaramis on Sat, 15 Jun 2019 03:40:23 +0300