d9635d9465b0c40f7cbe1cdfee0d508f682864e5,linearmodels/tests/panel/test_model.py,TestPanelOLS,setup_class,#Any#,171
Before Change
class TestPanelOLS(TestPooledOLS):
@classmethod
def setup_class(cls):
super(TestPanelOLS, cls).setup_class()
cls.mod = PanelOLS
def test_smoke(self):
After Change
np.random.seed(12345)
n, t, k = 10000, 4, 5
cls.x = random_sample((k, t, n))
beta = np.arange(1, k + 1)[:, None, None]
cls.y = (cls.x * beta).sum(0) + random_sample((t, n))
cls.y_pd = pd.DataFrame(cls.y)
cls.x_pd = pd.Panel(cls.x)
cls.y_xr = xr.DataArray(cls.y)
cls.x_xr = xr.DataArray(cls.x)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: bashtage/linearmodels
Commit Name: d9635d9465b0c40f7cbe1cdfee0d508f682864e5
Time: 2017-03-31
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_model.py
Class Name: TestPanelOLS
Method Name: setup_class
Project Name: instacart/lore
Commit Name: 644f6485707aaf7d670216f7ea0885b7a0bc8a26
Time: 2017-12-08
Author: montanalow@users.noreply.github.com
File Name: lore/encoders.py
Class Name: Token
Method Name: transform
Project Name: pandas-dev/pandas
Commit Name: 11ee2227c8e9848a9673c7c219ba6a3d28e8ce2d
Time: 2021-01-24
Author: jbrockmendel@gmail.com
File Name: pandas/tests/extension/test_numpy.py
Class Name: TestMissing
Method Name: test_fillna_fill_other