r/Python • • Jun 09 '16

Scientific Python Cheat Sheet

https://ipgp.github.io/scientific_python_cheat_sheet/
476 Upvotes

62 comments sorted by

View all comments

1

u/[deleted] Jun 10 '16

Nicely done! I remember that I made a "matrix" cheatsheet a few years ago (which is visually not so nicely done :P), you are welcome to take & add content from there if useful

1

u/Ogi010 Jun 10 '16

btw looked at yours, to create a column vector in python, numpy you can use the np.array.ravel() function, instead of reshape(1, 3) as in your example.

1

u/TheBlackCat13 Jun 11 '16

ravel doesn't create a column vector, it creates a true (1D) vector. Those are not the same thing for arrays.

1

u/Ogi010 Jun 11 '16

Good point!