()
| 37 | |
| 38 | |
| 39 | def 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 | |
| 54 | def test_info_categorical_column_smoke_test(): |