From b5f77a98731894b82d81be423a584a979df5a734 Mon Sep 17 00:00:00 2001 From: Jovina Date: Wed, 27 Jul 2011 17:34:14 +0530 Subject: Minor changes to script of "loading data from files". --- loading_data_from_files/script.rst | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/loading_data_from_files/script.rst b/loading_data_from_files/script.rst index b0d3245..9508a1d 100644 --- a/loading_data_from_files/script.rst +++ b/loading_data_from_files/script.rst @@ -222,6 +222,8 @@ we have learnt to, .. R18 +Here are some self assessment questions for you to solve + 1. ``loadtxt`` can read data from a file with one column only. True or False? @@ -243,15 +245,15 @@ And the answers, 1. False. ``loadtxt`` command can read data from files having both single columns as well as multiple columns. -2. A file with three columns of data seperated by spaces to be read into - 3 seperate sequences, +2. A file with three columns of data separated by spaces to be read into + 3 separate sequences, we use the loadtxt command as, :: x = loadtxt("data.txt", unpack=True) -3. If a file with three columns of data seperated by delimiters,we read - it into three seperate sequences by using an additional argument of +3. If a file with three columns of data separated by delimiters,we read + it into three separate sequences by using an additional argument of delimiter in the loadtxt command :: @@ -259,7 +261,7 @@ And the answers, .. L20 -{{{ Show the Thankyou slide }}} +{{{ Show the Thank you slide }}} .. R20 -- cgit