diff options
Diffstat (limited to 'loading_data_from_files/quickref.tex')
-rw-r--r-- | loading_data_from_files/quickref.tex | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/loading_data_from_files/quickref.tex b/loading_data_from_files/quickref.tex new file mode 100644 index 0000000..c3bbe95 --- /dev/null +++ b/loading_data_from_files/quickref.tex @@ -0,0 +1,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. + + |