f49809322491c857d435bb12f5de7b09aac2d181,linearmodels/tests/panel/test_data.py,,panel,#,28

Before Change


@pytest.fixture
def panel():
    n, t, k = 11, 7, 3
    x = np.random.random((k, t, n))
    major = pd.date_range("12-31-1999", periods=7)
    items = ["var.{0}".format(i) for i in range(1, k + 1)]
    minor = ["entities.{0}".format(i) for i in range(1, n + 1)]
    return pd.Panel(x, items=items, major_axis=major, minor_axis=minor)

After Change



@pytest.fixture
def panel():
    np.random.seed(12345)
    n, t, k = 11, 7, 3
    x = np.random.standard_normal((k, t, n))
    major = pd.date_range("12-31-1999", periods=7)
    items = ["var.{0}".format(i) for i in range(1, k + 1)]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: bashtage/linearmodels
Commit Name: f49809322491c857d435bb12f5de7b09aac2d181
Time: 2017-04-14
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/tests/panel/test_data.py
Class Name:
Method Name: panel


Project Name: hyperspy/hyperspy
Commit Name: 019f64ed3d8b04411d64cdff88adc3b3d409b301
Time: 2017-02-23
Author: eric.prestat@gmail.com
File Name: hyperspy/tests/mva/test_decomposition.py
Class Name: TestPlotExplainedVarianceRatio
Method Name: setup_method


Project Name: epfl-lts2/pygsp
Commit Name: 22d7e1007b8f0a3a825f938c881bc63ae206bae0
Time: 2018-10-07
Author: charles.gallay@epfl.ch
File Name: pygsp/tests/test_graphs.py
Class Name: TestCaseImportExport
Method Name: test_networkx_signal_export