mesa_frames.Grid.place_to_empty#
- Grid.place_to_empty(agents: int | Collection[int] | Series | DataFrame | AbstractAgentSet | AbstractAgentSetRegistry | Collection[AbstractAgentSet] | Collection[AbstractAgentSetRegistry], inplace: bool = True) Self#
Place agents in empty cells/positions in the space (cells/positions where there isn’t any single agent).
- Parameters:
agents (IdsLike | AbstractAgentSet | AbstractAgentSetRegistry | Collection[AbstractAgentSet] | Collection[AbstractAgentSetRegistry]) – The agents to place in empty cells/positions
inplace (bool, optional) – Whether to perform the operation inplace, by default True
- Return type:
Self