I'm using numpy in python, but there are many useful functions, and I've noticed that I could do this with numpy several times, so I also study writing a blog to cover what I can do with numpy. I'm making a list of functions. This time is b edition.
Create a sequence of mountains of np.bartlett 0-1-0. Number of elements in parentheses https://numpy.org/doc/1.16/reference/generated/numpy.bartlett.html np.base_repr (number, base = 2, padding = 0) Convert binary numbers. If the value of base is 10, it will be in decimal https://numpy.org/doc/stable/reference/generated/numpy.base_repr.html np.binary_repr Convert numbers to binary binaries Link np.bincount Outputs the mode in the array element https://qiita.com/nirs_kd56/items/08f087dfa89b77d3c897 np.bitwise_and and for each bit https://note.nkmk.me/python-numpy-logical-bitwise-and-or/ np.bitwise_not Inversion for each bit np.bitwise_or or for each bit np.bitwise_xor xor for each bit np.blackman Blackman window One of the window functions used for frequency analysis http://aidiary.hatenablog.com/entry/20110716/1310824587 Combine np.block arrays by specifying the placement https://note.nkmk.me/python-numpy-concatenate-stack-block/ Insert with np.bmat ([], []) and join in a grid pattern np.bool Boolean type np.bool8 8-bit bool type np.bool_ Similar to np.bool. Do you think the details of the mold are different? Check below. https://ja.coder.work/so/python/169925 np.bool8 8-bit bool type np.bool_ Similar to np.bool. Do you think the details of the mold are different? Check below. https://ja.coder.work/so/python/169925 np.broadcast A function that automatically expands when the number of elements is insufficient is called broadcast. This function is used when defining through broadcast. https://qiita.com/capybara/items/2d5f387996a5bd275fbf https://stackoverrun.com/ja/q/9994569 np.broadcast_arrays Broadcast multiple arrays to align the arrays https://note.nkmk.me/python-numpy-broadcasting/ np.broadcast_to Broadcast to any shape https://note.nkmk.me/python-numpy-broadcasting/ np.busday_count Ignore weekends and count the number of days. You may enter it as a character string Link np.busday_offset Advance the number of days as a business day ignoring weekends https://numpy.org/doc/stable/reference/generated/numpy.busday_offset.html np.busdaycalendar Define holidays https://numpy.org/doc/stable/reference/generated/numpy.busdaycalendar.html np.byte byte type np.byte_bounds Returns an array pointer. As an example of use http://www.366service.com/jp/qa/cf1dcfcf28c7009fb76ff3f6c8fbfe08 np.bytes0 ? If you can understand the difference when np.bytes_? _ Is attached, you can understand it.
In some places, the essence cannot be understood and the coverage is insufficient. I will update it as needed when I find out something.
Recommended Posts