changeset 522 | d33698326409 |
parent 521 | 88a01948450d |
child 523 | 54bdda4aefa5 |
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 |