Skip to content

Instantly share code, notes, and snippets.

@wiccy46
Last active September 20, 2019 08:10
Show Gist options
  • Select an option

  • Save wiccy46/70eed7dd8c3fefc162f70b532974b740 to your computer and use it in GitHub Desktop.

Select an option

Save wiccy46/70eed7dd8c3fefc162f70b532974b740 to your computer and use it in GitHub Desktop.
[1darray2colvec]Convert 1D array to Column Vector in Python #python
a = np.arange(10) # (10, )
a.reshape(-1, 1) # (10, 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment