def _check_inplace_setting(self, value):
if self._is_mixed_type:<EOL><INDENT>if not self._is_numeric_mixed_type:<EOL><INDENT>try:<EOL><INDENT>if np.isnan(value):<EOL><INDENT>return True<EOL><DEDENT><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT>raise TypeError('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT><DEDENT>return True<EOL>
check whether we allow in-place setting with this type of value