import numpy as np

from .pandas_vb_common import Panel, setup  # noqa


class PanelMethods(object):

    goal_time = 0.2
    params = ['items', 'major', 'minor']
    param_names = ['axis']

    def setup(self, axis):
        self.panel = Panel(np.random.randn(100, 1000, 100))

    def time_pct_change(self, axis):
        self.panel.pct_change(1, axis=axis)

    def time_shift(self, axis):
        self.panel.shift(1, axis=axis)
