@classmethod
    def from_data(cls, data, shift_zeros=True):

        if isinstance(data, pd.DataFrame):
            table = pd.crosstab(data.iloc[:, 0], data.iloc[:, 1])
        else:
            table = pd.crosstab(data[:, 0], data[:, 1])

        return cls(table, shift_zeros)
set up the test each time
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/stats/contingency_tables.py/Table.from_data--crossover with--dataset/ETHPy150Open eoyilmaz/anima/tests/env/test_environment_variables.py/EnvironmentVariableSetupTestCase.setUp