Outputs the model’s data to a CSV file in the same directory as the running program.
Parameters
filename — str, optional
The name of the file to output, without the .csv extension.
Default value: 'data'
Agent-based modeling in Python
Outputs the model’s data to a CSV file in the same directory as the running program.
filename — str, optional
The name of the file to output, without the .csv extension.
Default value: 'data'
Notes and Examples