We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7ab856 commit c36e302Copy full SHA for c36e302
pandas/tests/frame/test_repr_info.py
@@ -29,12 +29,7 @@ class TestDataFrameReprInfoEtc:
29
def test_repr_bytes_61_lines(self):
30
# GH#12857
31
lets = list("ACDEFGHIJKLMNOP")
32
- slen = 50
33
- nseqs = 1000
34
- words = [
35
- [np.random.default_rng(2).choice(lets) for x in range(slen)]
36
- for _ in range(nseqs)
37
- ]
+ words = np.random.default_rng(2).choice(lets, (1000, 50))
38
df = DataFrame(words).astype("U1")
39
assert (df.dtypes == object).all()
40
0 commit comments