E572
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c4f625 commit eb43fa4Copy full SHA for eb43fa4
pandas/tests/extension/json/test_json.py
@@ -21,6 +21,17 @@ def dtype():
21
@pytest.fixture
22
def data():
23
"""Length-100 PeriodArray for semantics test."""
24
+ data = make_data()
25
+
26
+ # Why the while loop? NumPy is unable to construct an ndarray from
27
+ # equal-length ndarrays. Many of our operations involve coercing the
28
+ # EA to an ndarray of objects. To avoid random test failures, we ensure
29
+ # that our data is coercable to an ndarray. Several tests deal with only
30
+ # the first two elements, so that's what we'll check.
31
32
+ while len(data[0]) == len(data[1]):
33
34
35
return JSONArray(make_data())
36
37
0 commit comments