Fetching data from text file
cat file1.txt   this command is file with number as well as strings
but s=loadtxt("file1.txt") this command is fine only if data is number in file1.txt.  In case of strings/text this command is not working? 

Python-3.4.3 Loading-Data-From-Files 02-03 min 20-30 sec 22-06-19, 4:44 p.m. skapuria

Answers:

"loadtxt" is specific for loading numeric data and not strings.
22-06-19, 4:53 p.m. iakashchavan


Click here to reply/comment online