Skip to content

Commit

Permalink
using df.items for pandas 2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensle committed Dec 14, 2024
1 parent 99822ca commit 1777637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activitysim/core/estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def write_parquet(self, df, file_path, index, append=False):
), f"file already exists: {file_path}"

# Explicitly set the data types of the columns
for col_name, col_data in df.iteritems():
for col_name, col_data in df.items():
if "int" in str(col_data.dtype):
pass
elif (
Expand Down

0 comments on commit 1777637

Please sign in to comment.