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

Function test_to_frame_column_rangeindex

pandas/tests/indexes/test_common.py:515–519  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

513
514
515def test_to_frame_column_rangeindex():
516 idx = pd.Index([1])
517 result = idx.to_frame().columns
518 expected = RangeIndex(1)
519 tm.assert_index_equal(result, expected, exact=True)
520
521
522def test_to_frame_name_tuple_multiindex():

Callers

nothing calls this directly

Calls 2

to_frameMethod · 0.95
RangeIndexClass · 0.90

Tested by

no test coverage detected