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++11 - Intel compiler and "cannot have an in-class initializer" when using constexpr -

rest - Spring boot: Request method 'PUT' not supported -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -