cat command
I am unable to see files using the cat command....Please help me out.
Python-3.4.3 Loading-Data-From-Files 01-02 min 30-40 sec
Answers:
cat command is a linux specific commands. Use !type <filename> inside ipython terminal.
Sir,I tried this one too but it didn't work
30-09-21, 12:20 p.m.
20001002020
Check if the file is present in the current working directory. To check the current working directory type %pwd in ipython terminal. If the files is not present then you need to save the file in the current working directory
30-09-21, 7:54 p.m.
aditya94palaparthy@gmail.com
got answer
22-11-21, 3 p.m.
anshu99
file path was too long
i have reduced it
and got command executed
In [47]: %pycat E:\primes.txt
2
3
5
7
11
13
17
19
23
29
31
37
41
43
47
53
59
61
67
71
73
79
83
89
97
In [48]: primes = loadtxt("E:\primes.txt")
In [49]: print(primes)
[ 2. 3. 5. 7. 11. 13. 17. 19. 23. 29. 31. 37. 41. 43. 47. 53. 59. 61.
67. 71. 73. 79. 83. 89. 97.]