I'm given a .csv file, which is a data file from a weather station that includes date, time, temperature, dewpoint, humidity, etc. This is what I have so far in a Python file:
import math
import pandas as pd
import math
import numpy
openfile=pd.read_csv('KOAK.csv','r',delimiter=',',skiprows=8,header=None)
f1=openfile.read()
openfile.close()
I am skipping the first 8 rows as these contain header information. How can I fix this Python code to read the entire data set but excluding the headers? I got the following error messages:
File "mesowest3.py", line 7, in <module>
f1=openfile.read()
File "/swdepot/anaconda3-2019.10/lib/python3.7/site-packages/pandas/core/generic .py", line 5179, in __getattr__
return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'read'