MCPcopy Index your code
hub / github.com/numpy/numpy / encode

Method encode

numpy/_core/defchararray.py:795–804  ·  view source on GitHub ↗

Calls :meth:`str.encode` element-wise. See Also -------- char.encode

(self, encoding=None, errors=None)

Source from the content-addressed store, hash-verified

793 return decode(self, encoding, errors)
794
795 def encode(self, encoding=None, errors=None):
796 """
797 Calls :meth:`str.encode` element-wise.
798
799 See Also
800 --------
801 char.encode
802
803 """
804 return encode(self, encoding, errors)
805
806 def endswith(self, suffix, start=0, end=None):
807 """

Callers 15

fullapi_hashFunction · 0.80
normalize_docFunction · 0.80
test_void_castsMethod · 0.80
test_bytes_castsMethod · 0.80
test_encodeMethod · 0.80
test_encodeMethod · 0.80
test_encodeMethod · 0.80
_checkMethod · 0.80
test_str_roundtrip_bytesFunction · 0.80

Calls 1

encodeFunction · 0.85

Tested by 15

test_void_castsMethod · 0.64
test_bytes_castsMethod · 0.64
test_encodeMethod · 0.64
test_encodeMethod · 0.64
test_encodeMethod · 0.64
_checkMethod · 0.64
test_str_roundtrip_bytesFunction · 0.64
content_checkMethod · 0.64
content_checkMethod · 0.64