View types

CellsView

class CellsView(data, impl, keys=None)[source]

A mapping of cells names to cells objects.

CellsView objects are returned by UserSpace.cells property. When UserSpace.cells is called without subscription([] operator), the returned CellsView contains all the cells in the space.

CellsView supports a normal subscription([]) operation with one argument to retrieve a cells object from its name, but it also supports multiple arguments to indicate the names of cells to select, and returns another CellsView containing only the selected cells.

For example, if space contains 3 cells foo, bar and baz:

>> space.cells
{foo,
 bar,
 baz}

>> space.cells['bar', 'baz']
{bar,
 baz}

Methods

to_frame(*args)

Convert the cells in the view into a DataFrame object.

SpaceView

class SpaceView(data, impl)[source]

A mapping of space names to space objects.