changeset 105:8c0a1b11b007

bugfix, we keep all the line, but only a some columns
author Frederic Bastien <bastienf@iro.umontreal.ca>
date Tue, 06 May 2008 16:34:48 -0400
parents e1a004b21daa
children cf9bdb1d9656
files dataset.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dataset.py	Tue May 06 16:12:37 2008 -0400
+++ b/dataset.py	Tue May 06 16:34:48 2008 -0400
@@ -977,7 +977,7 @@
 
         # else check for a fieldname
         if self.hasFields(key):
-            return self.data[self.fields_columns[key],:]
+            return self.data[:,self.fields_columns[key]]
         # else we are trying to access a property of the dataset
         assert key in self.__dict__ # else it means we are trying to access a non-existing property
         return self.__dict__[key]