summaryrefslogtreecommitdiff
path: root/loading_data_from_files/quickref.tex
blob: c3bbe95eadeae9e5339d28422d8ddb6b130945d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
\textbf{Loading data from files}

\lstinline|loadtxt('filename')| returns the columns of file in one
sequence. 

\lstinline|x, y = loadtxt('filename', unpack=True)| to obtain a file
with 2 columns in separate sequences. 

\lstinline|loadtxt('filename', delimiter=';')|, if the file has
columns separated by ';' instead of spaces/tabs.