loading_data_from_files/quickref.tex
changeset 522 d33698326409
equal deleted inserted replaced
521:88a01948450d 522:d33698326409
       
     1 \textbf{Loading data from files}
       
     2 
       
     3 \lstinline|loadtxt('filename')| returns the columns of file in one
       
     4 sequence. 
       
     5 
       
     6 \lstinline|x, y = loadtxt('filename', unpack=True)| to obtain a file
       
     7 with 2 columns in separate sequences. 
       
     8 
       
     9 \lstinline|loadtxt('filename', delimiter=';')|, if the file has
       
    10 columns separated by ';' instead of spaces/tabs. 
       
    11 
       
    12