Skip to content

Commit

Permalink
Merge pull request PSLmodels#436 from andersonfrailey/sortcolumns
Browse files Browse the repository at this point in the history
Sort PUF columns
  • Loading branch information
andersonfrailey authored Sep 15, 2023
2 parents cb3465f + 697761c commit bab4bf8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions taxdata/puf/finalprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ def finalprep(data):
# - Rename 'filer' to 'data_source'
data = data.rename(columns={"filer": "data_source"})

# - Sort columns to ensure every PUF is the same
data.sort_index(axis=1, inplace=True)

return data


Expand Down

0 comments on commit bab4bf8

Please sign in to comment.