[Numpy-discussion] using loadtxt to load a text file in to a numpy array
Chris Barker
chris.barker at noaa.gov
Wed Jan 15 18:42:35 EST 2014
bump back to the OP:
On Wed, Jan 15, 2014 at 2:12 AM, Hedieh Ebrahimi <
hedieh.ebrahimi at amphos21.com> wrote:
> fileContent=loadtxt(filePath,dtype=str)
>
do either of these work for you?
fileContent=loadtxt(filePath,dtype='S')
or
fileContent=loadtxt(filePath,dtype=np.unicode)
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140115/92049cb5/attachment.html>
More information about the NumPy-Discussion
mailing list