# HG changeset patch # User Puneeth Chaganti # Date 1286515022 -19800 # Node ID 81bb9a6d7eebb8becff26342174c7bb172d8529f # Parent 95e7682e9d434464435856ae7d298dbf203d0e5b Fixed script of loading data from files LO. diff -r 95e7682e9d43 -r 81bb9a6d7eeb loading-data-from-files/script.rst --- a/loading-data-from-files/script.rst Thu Oct 07 15:12:19 2010 +0530 +++ b/loading-data-from-files/script.rst Fri Oct 08 10:47:02 2010 +0530 @@ -1,8 +1,30 @@ -======== - Script -======== +.. Objectives +.. ---------- + +.. 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 +.. ------------- -Welcome to this tutorial on loading data from files. +.. 1. getting started with ``ipython`` + +.. Author : + Internal Reviewer : + External Reviewer : + Checklist 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 @@ 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 @@ 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 @@ + 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! +