mesa_frames.Grid.is_empty#
- Grid.is_empty(pos: int | DataFrame | Sequence[int] | Collection[int | DataFrame] | Sequence[int | slice | Sequence[int]] | Collection[int | Sequence[int] | DataFrame]) DataFrame#
Check whether the input positions are empty (there isn’t any single agent in the cells).
- Parameters:
pos (DiscreteCoordinate | DiscreteCoordinates) – The positions to check for
- Returns:
A dataframe with positions and a boolean column “empty”
- Return type:
DataFrame