python - How to load columns from text file with numpy -


i have text file rows , each row has 3 floats separeted space. interested load 2nd , 3rd column. typed:

b=np.loadtxt('file.txt',delimiter=(' '),usecols=(1,2))  

but getting error:

syntaxerror: non-keyword arg after keyword arg 


Comments

Popular posts from this blog

c# - Sort XmlNodeList with a specific Node value -

actionscript 3 - Equivalent to moveReceived in ElectroServer 5 -

c++11 - Intel compiler and "cannot have an in-class initializer" when using constexpr -