I have a csv file with following format
x1,y1,x2,y2,x3,y3
1,1,2,2,6.5,7.5
2,2,-1,-1,,
,,-2,-3,,
,,-5,-5,,
I want to plot columns (x1,y1), (x2,y2) and (x3,y3), for example,
rd1 = some_csv_reader('filename.csv')
matplotlib.pyplot.plot(rd1[:,0],rd1[:,1],rd1[:,2],rd1[:,3])
I tried using pandas.read_csv() but it puts nan for empty entries. pandas.fwf() doesn't separate out columns. I would like to exclude any empty positions in the array during reading itself instead of using something like https://stackoverflow.com/a/11453235/11638153. How can I do that?
 
     
    

