diff options
-rw-r--r-- | loading-data-from-files/script.rst | 56 |
1 files changed, 44 insertions, 12 deletions
diff --git a/loading-data-from-files/script.rst b/loading-data-from-files/script.rst index f67a8c3..a8453e5 100644 --- a/loading-data-from-files/script.rst +++ b/loading-data-from-files/script.rst @@ -1,8 +1,30 @@ -======== - Script -======== +.. Objectives +.. ---------- -Welcome to this tutorial on loading data from files. +.. At the end of this tutorial, you will be able to + +.. + Read data from files, containing a single column of data using the +.. ``loadtxt`` command. +.. + Read multiple columns of data, separated by spaces or other +.. delimiters. + + +.. Prerequisites +.. ------------- + +.. 1. getting started with ``ipython`` + +.. Author : + Internal Reviewer : + External Reviewer : + Checklist OK? : <put date stamp here, if OK> [2010-10-05] + +Script +------ + +{{{ Show the slide containing title }}} + +Hello Friends. Welcome to this tutorial on loading data from files. {{{ Screen shows welcome slide }}} @@ -61,8 +83,11 @@ two columns of data, ``pendulum.txt``. This file contains the length of the pendulum in the first column and the corresponding time period in the second. -%%1%% Pause the video here, and use the ``cat`` command to view the -contents of this file and then resume the video. +.. Following is an exercise that you must do. + +.. %%1%% Use the ``cat`` command to view the contents of this file. + +.. Please, pause the video here. Do the exercise and then continue. This is how we look at the contents of the file, ``pendulum.txt`` :: @@ -116,11 +141,13 @@ In this tutorial, we have learnt the basic use of the ``loadtxt`` command, which is capable of doing a lot more than we have used it for until now, for example -%%2%% Pause the video here, and read the file -``pendulum_semicolon.txt`` which contains the same data as -``pendulum.txt``, but the columns are separated by semi-colons instead -of spaces. Use the IPython help to see how to do this. Once you have -finished, resume the video to look at the solution. +Following is an exercise that you must do. + +%%1%% Read the file ``pendulum_semicolon.txt`` which contains the same +data as ``pendulum.txt``, but the columns are separated by semi-colons +instead of spaces. Use the IPython help to see how to do this. + +Please, pause the video here. Do the exercise and then continue. {{{ switch back to the terminal }}} :: @@ -142,5 +169,10 @@ You should now be able to do the following, comfortably. + Read multiple columns of data, separated by spaces or other delimiters. -Thank you! +{{{ Show the "sponsored by FOSSEE" slide }}} + +This tutorial was created as a part of FOSSEE project, NME ICT, MHRD India + +Hope you have enjoyed and found it useful. +Thank you! |