def setup(self, dtype):
    np.random.seed(1234)
    n = (5 * (10 ** 5))
    sample_size = 100
    arr = [i for i in np.random.randint(0, (n // 10), size=n)]
    if (dtype == 'object'):
        arr = ['s{:04d}'.format(i) for i in arr]
    self.sample = np.random.choice(arr, sample_size)
    self.series = pd.Series(arr).astype('category')
def setup(self, dtype):
    np.random.seed(1234)
    n = (5 * (10 ** 5))
    sample_size = 100
    arr = [i for i in np.random.randint(0, (n // 10), size=n)]
    if (dtype == 'object'):
        arr = ['s{:04d}'.format(i) for i in arr]
    self.sample = np.random.choice(arr, sample_size)
    self.series = pd.Series(arr).astype('category')