I have a CSV file that I am trying to read through with the pandas module in python..(i am coding in Ubuntu).
pd.read_csv("filename.csv",skiprows=2)
I want to skip two rows so I am using skiprows argument here. (The file named filename.csv is created through a C program.) The problem which I am facing is that when I try to read the file directly then I am getting an IndexError as follows:
IndexError: index 0 is out of bounds for axis 0 with size 0
and one warning as
FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
res_values = method(rvalues)
But at the same time if I open my CSV file and just save it without doing any editing in it..my error gets resolved. So for every time, I need to read my CSV file I need to open it once through Libre Office(in Ubuntu) and save that file using ctrl+s and further in the option save as CSV text. Then, my program read it without any errors. But on not saving, it produces the above-mentioned error. Please help me with this issue. Thanks in Advance.
