def slice_naive(self, key):
cls = self.__class__<EOL>key = check_key(self, key)<EOL>return cls(self.loc[key])<EOL>
Slice a data object based on its index, either by value (.loc) or
position (.iloc).

Args:
    key: Single index value, slice, tuple, or list of indices/positionals

Returns:
    data: Slice of self