17.10.08

Numpy in Russian

Few nice lines of Russian numpy documentation:

http://num.wikidot.com/

PS. "Bonus" ;)
Just a quick example how to pull information you want from an ascii file where you have a lot of "junk" data:

Shortly: >> file = numpy.loadtxt('k_490_track.dat',delimiter=None,skiprows=3,usecols=(5,6,8),unpack=True)

"delimiter none" - all the whitespaces serve as a delimiter;
"skiprows" and "usecols" - selfexplanatory expressions
"unpack" - convert an array to a vector

No comments: