def dropna(self, axis=<NUM_LIT:0>, inplace=False, **kwargs):
<EOL>self._get_axis_number(axis or <NUM_LIT:0>)<EOL>dense_valid = self.to_dense().dropna()<EOL>if inplace:<EOL><INDENT>raise NotImplementedError("<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT>if isna(self.fill_value):<EOL><INDENT>return dense_valid<EOL><DEDENT>else:<EOL><INDENT>dense_valid = dense_valid[dense_valid != self.fill_value]<EOL>return dense_valid.to_sparse(fill_value=self.fill_value)<EOL><DEDENT>
Analogous to Series.dropna. If fill_value=NaN, returns a dense Series