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?
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
Answers:
"loadtxt" is specific for loading numeric data and not strings.