def _assert_take_fillable(self, values, indices, allow_fill=True,<EOL>fill_value=None, na_value=np.nan):
indices = ensure_platform_int(indices)<EOL>if allow_fill and fill_value is not None:<EOL><INDENT>if (indices < -<NUM_LIT:1>).any():<EOL><INDENT>msg = ('<STR_LIT>'<EOL>'<STR_LIT>')<EOL>raise ValueError(msg)<EOL><DEDENT>taken = algos.take(values,<EOL>indices,<EOL>allow_fill=allow_fill,<EOL>fill_value=na_value)<EOL><DEDENT>else:<EOL><INDENT>taken = values.take(indices)<EOL><DEDENT>return taken<EOL>
Internal method to handle NA filling of take.