# Accessing df\_agent in agents.jl

**URL:** https://discourse.julialang.org/t/accessing-df-agent-in-agents-jl/132285
**Category:** Modelling & Simulations
**Created:** [September 11, 2025, 1:59pm UTC](https://discourse.julialang.org/t/accessing-df-agent-in-agents-jl/132285 "2025-09-11T13:59:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![geoffD](https://avatars.discourse-cdn.com/v4/letter/g/cdc98d/32.png) [@geoffD](https://discourse.julialang.org/u/geoffD)
#### Post date: [September 11, 2025, 1:59pm UTC](https://discourse.julialang.org/t/accessing-df-agent-in-agents-jl/132285/1 "2025-09-11T13:59:50Z")

</div>

Hi, all. I am noticing that upon running simulations with Agents.jl, the agent dataframe (adf) and presumably the underlying agent data stored in df\_agent contain one record per agent per timestep.

For one of my models, I only need to retain agent data for the most recent time step, and it would be helpful to remove data from earlier time steps due to some memory challenges. However, I can’t access df\_agent from within my model code, so I’m not sure how to proceed. Any help would be appreciated. Thanks!
