MCPcopy
hub / github.com/pandas-dev/pandas / test_info_wide

Function test_info_wide

pandas/tests/frame/methods/test_info.py:228–243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226
227
228def test_info_wide():
229 io = StringIO()
230 df = DataFrame(np.random.default_rng(2).standard_normal((5, 101)))
231 df.info(buf=io)
232
233 io = StringIO()
234 df.info(buf=io, max_cols=101)
235 result = io.getvalue()
236 assert len(result.splitlines()) > 100
237
238 expected = result
239 with option_context("display.max_info_columns", 101):
240 io = StringIO()
241 df.info(buf=io)
242 result = io.getvalue()
243 assert result == expected
244
245
246def test_info_duplicate_columns_shows_correct_dtypes():

Callers

nothing calls this directly

Calls 3

infoMethod · 0.95
DataFrameClass · 0.90
option_contextFunction · 0.90

Tested by

no test coverage detected