[PYTHON] Set function of NumPy

Numpy set function

-Returns the sorted result after removing duplicates from the array elements  np.unique()

-Extract and sort the elements existing in at least one of the arrays x and y np.union1d (x, y) (union)

-Extract and sort common elements from arrays x and y np.intersect1d (x, y) (intersection)

-Remove the elements common to array x and array y from array x and sort. np.setdiff1d (x, y) (difference set) etc.

Recommended Posts

Set function of NumPy
About all of numpy
Sum of multiple numpy arrays (sum)
[python] Value of function object (?)
[Python] Etymology of python function names
About all of numpy (2nd)
Artificial data set (sine function)
Introduction and implementation of activation function
Implementation of login function in Django
Rewrite piecewise of NumPy for CuPy
[Memo] Small story of pandas, numpy
[OpenCV; Python] Summary of findcontours function
[pyqtgraph] Set the size ratio of the graph
A memorandum of using Python's input function
[Python3] Rewrite the code object of the function
Summary of numpy functions I didn't know
About the arguments of the setup function of PyCaret
Difference in output of even-length window function
Set the process name of the Python program
Weighting of random.choice even under numpy v1.6
Set the number of elements in a NumPy one-dimensional array to a power of 2 (0 padded)
Set an upper limit on the number of recursive function iterations in Python