Skip to content

Commit

Permalink
Sort PUF columns
Browse files Browse the repository at this point in the history
  • Loading branch information
andersonfrailey committed Sep 13, 2023
1 parent cb3465f commit 697761c
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 697761c

Please sign in to comment.