I have several csv files. Each csv file is present with its description spanning across several rows (15 rows in few files, 100 rows in few other etc.). I want to read the csv files into dataframes. I tried to use pandas.DataFrame('file1.csv') for reading data into dataframe. How ever, I am getting the following error.
Traceback (most recent call last):
File "snowdepthData.py", line 5, in <module>
depthDF = pd.DataFrame('Alaska_SD_Sep2019toOct2020.csv')
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\frame.py", line 485, in __init__
raise ValueError("DataFrame constructor not properly called!")
ValueError: DataFrame constructor not properly called!
Is there any way, I can skip reading the description and convert data into dataframe.
Thankyou.