Pandas' loading a CSV file problem
Ek Esawi
esawiek at gmail.com
Wed Oct 21 17:57:40 EDT 2015
Hi All---
I am new to Pandas. I am trying to load a csv file into pandas using
import pandas as pd
f = pd.read_csv(OSATemp.csv')
Even though I was able to read and manipulate the file in Python343, in
Pandas the file could not be loaded. When I run the above statement, I get
a series of massages such as
Traceback (most recent call last):
File "C:\Users\EK Esawi\Anaconda3\Scripts\file1.py", line 3, in <module>
f = pd.read_csv('c:/Users/EK Esawi/My Documents/Temp/GOSATemp.csv')
File "C:\Users\EK
Esawi\Anaconda3\lib\site-packages\pandas\io\parsers.py", line 474, in
parser_f
Any help/suggestion is greatly appreciated—EKE
Here is a sample of my csv file:
120891
120891
120873
120890
120890
120754
120891
120890
120890
O
Geyser
RT
Time
Interval
Duration
Preplay
Height
Prediction
42
Old Faithful
8:16
3:00
43
Old Faithful
9:55
1:39
4:15
9:41
130+
9:49
44
Old Faithful
11:33
1:38
3:59
11:20
130
11:28
45
Old Faithful
13:00
1:27
4:00
13:00
140
13:06
46
Old Faithful
14:42
1:42
3:44
14:29
150
14:33
47
Old Faithful
16:08
1:26
>4:00
16:02
140+
16:15
56
Castle
E
9:36
9:40ie
75
Old Faithful
7:23
>3:00
76
Old Faithful
9:05
1:42
4:13
8:52
150
8:05
77
Old Faithful
10:37
1:32
4:08
10:32
130
10:38
78
Old Faithful
12:02
1:25
3:00
11:59
130
12:10
79
Old Faithful
13:38
1:36
>3:30
13:27
13:00
80
Old Faithful
15:08
1:30
4:05
15:02
15:01
81
Old Faithful
16:42
1:34
3:54
16:32
150
16:41
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20151021/235fbd78/attachment.html>
More information about the Python-list
mailing list