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

Function test_info_empty

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

Source from the content-addressed store, hash-verified

37
38
39def test_info_empty():
40 # GH #45494
41 df = DataFrame()
42 buf = StringIO()
43 df.info(buf=buf)
44 result = buf.getvalue()
45 expected = textwrap.dedent(
46 """\
47 <class 'pandas.DataFrame'>
48 RangeIndex: 0 entries
49 Empty DataFrame\n"""
50 )
51 assert result == expected
52
53
54def test_info_categorical_column_smoke_test():

Callers

nothing calls this directly

Calls 2

infoMethod · 0.95
DataFrameClass · 0.90

Tested by

no test coverage detected