<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def str(self):
 """Get Access to string functions. Returns ------- StringMethods Examples -------- <BLANKLINE> --- --------- 0 ab 1 goosfraba """

        if self.dtype.char != 'S':
            raise AttributeError('Can only use .str when data is of type np.bytes_')

        from .strings import StringMethods

        return StringMethods(self)