Skip to content

Instantly share code, notes, and snippets.

@pmagwene
Created October 16, 2011 01:55
Show Gist options
  • Save pmagwene/1290415 to your computer and use it in GitHub Desktop.
Save pmagwene/1290415 to your computer and use it in GitHub Desktop.
create a numpy recarray from a matrix
nr1 = np.core.records.fromarrays(d1.transpose(), names=labels,formats=['f8']*191)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment