<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def density(self):
 """ The percent of non- ``fill_value`` points, as decimal. Examples -------- 0.6 """

        r = float(self.sp_index.npoints) / float(self.sp_index.length)
        return r