I have a file with the format:
1 2.5264 24106644528 astring
I would like to import the data. I am using:
>>> numpy.genfromtxt('myfile.dat',dtype=None)
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
numpy.genfromtxt('myfile.dat',skip_header=27,dtype=None)
File "C:\Python27\lib\site-packages\numpy\lib\npyio.py", line 1691, in genfromtxt
output = np.array(data, dtype=ddtype)
OverflowError: Python int too large to convert to C long
I checked the maximum integer on my (32-bit) system:
>>> import sys
>>> sys.maxint
2147483647
Is there a way to increase the integer limit? Or can I get around my import problem another way (without putting '.0' after all of the ints in file)?
Realised I can do this: