Commit 91793c63 authored by panos's avatar panos

A comment corrected in the object

parent dd71db89
......@@ -24,7 +24,7 @@ Created on 19 Feb 2014
'''
from StatisticalMeasures import StatisticalMeasures
#The HandleMissingValues object
#The ReplaceMissingValues object
class ReplaceMissingValues(StatisticalMeasures):
#Three different approaches to handle missing values are included in this object
def ReplaceWithZero(self,mylist): #Replace in the given list the missing values with zero
......@@ -46,7 +46,6 @@ class ReplaceMissingValues(StatisticalMeasures):
def ReplaceWithMean(self,mylist): #Replace in the given list the missing values with the mean value
list1=self.DeleteMissingValue(mylist) #Create a new list, which is the given list deleting the missing values (calling the DeleteMissingValue method)
# mean=sum(list1)/float(len(list1)) #Calculate the mean value of the new list
mean=self.mean(list1)
i=0
for value in mylist:
......@@ -57,7 +56,6 @@ class ReplaceMissingValues(StatisticalMeasures):
def ReplaceWithMedian(self,mylist): #Replace in the given list the missing values with the median value
list1=self.DeleteMissingValue(mylist) #Create a new list, which is the given list deleting the missing values (calling the DeleteMissingValue method)
# A=BasicStatisticalMeasures() #Call the BasicStatisticalMeasures to calculate the median value
median=self.median(list1) #Calculate the median value of the new list
i=0
for value in mylist:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment