Skip to content

Instantly share code, notes, and snippets.

@nooperpudd
Created May 24, 2018 01:00
Show Gist options
  • Save nooperpudd/427d6333e537bbf5d8bb54e7ff6cdbe4 to your computer and use it in GitHub Desktop.
Save nooperpudd/427d6333e537bbf5d8bb54e7ff6cdbe4 to your computer and use it in GitHub Desktop.
numpy array
array[:, 1::]
serializer_array = np.apply_along_axis(
lambda x: (x[0], self._serializer.dumps(x[1:].tolist())), 1, array)
print(serializer_array)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment