TypeError: loadtxt() got an unexpected keyword argument 'max_rows'

MRAB python at mrabarnett.plus.com
Tue Sep 3 12:37:57 EDT 2019


On 2019-09-03 17:02, alberto wrote:
> Hi,
> I produce a script to elaborate data
> 
> but command line $ python3.4 PlotnhvsvdBTP1.py
> 
> I have this error
> 
> Traceback (most recent call last):
> File "PlotnhvsvdBTP1.py", line 31, in <module>
> UCvol = np.loadtxt(outputtransfile,skiprows=26,max_rows=1,usecols=[1])
> TypeError: loadtxt() got an unexpected keyword argument 'max_rows'
> 
> How could fix it?
> 
> I attacched my files
> 
> https://drive.google.com/file/d/1PgOcuEMFsaAuKTsbU0i0gwg04mDCJJoK/view?usp=sharing
> https://drive.google.com/file/d/13E7vcGQtrOS1lw9RupGThGQ2vSGRfTFG/view?usp=sharing
> https://drive.google.com/file/d/1Z6GKYtHthAyPO3wFHUFK10QweRpclu29/view?usp=sharing
> 
The "max_rows" keyword argument is new in numpy version 1.16.0.

Which version do you have?

Try:

import numpy
print(numpy.__version__)
to find out.



More information about the Python-list mailing list