MCPcopy Create free account
hub / github.com/numpy/numpy / encode_unicode_cols

Function encode_unicode_cols

numpy/lib/npyio.py:2350–2354  ·  view source on GitHub ↗
(row_tup)

Source from the content-addressed store, hash-verified

2348 "system default.",
2349 np.VisibleDeprecationWarning, stacklevel=2)
2350 def encode_unicode_cols(row_tup):
2351 row = list(row_tup)
2352 for i in strcolidx:
2353 row[i] = row[i].encode('latin1')
2354 return tuple(row)
2355
2356 try:
2357 data = [encode_unicode_cols(r) for r in data]

Callers 1

genfromtxtFunction · 0.85

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected