Skip to content

Commit

Permalink
dropping duplicate columns
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensle committed Nov 22, 2024
1 parent 36dfb45 commit e4eb045
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions activitysim/core/estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,9 @@ def write_omnibus_table(self):
else:
df = pd.concat([self.tables[t] for t in table_names], axis=concat_axis)

# remove duplicated columns, keeping the first instance
df = df[df.columns.drop_duplicates()]

self.debug(f"sorting tables: {table_names}")
df.sort_index(ascending=True, inplace=True, kind="mergesort")

Expand Down

0 comments on commit e4eb045

Please sign in to comment.