Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow column names to be aliased #5

Open
jangeador opened this issue Aug 26, 2014 · 0 comments
Open

Allow column names to be aliased #5

jangeador opened this issue Aug 26, 2014 · 0 comments

Comments

@jangeador
Copy link

Another suggestion is to implement the ability to alias columns. The .csv that I have to work with sometimes come with crappy column names. It would be nice if we could alias the column so that they will match the header when we define it, but we can use a different column name after that.

For example:

COLUMNS_1 = [
    {'name': 'Fiscal Year', 'required': True, 'alias': 'fiscal_year'},
    {'name': 'Month', 'required': False},
    {'name': 'Fund', 'required': False},
    {'name': '%exp', 'required': False, 'alias': 'percent_expended'},
    {'name': 'Unexpended Budget', 'required': False},
    {'name': 'Encumbrance', 'required': False},
    {'name': 'Unencumbered Budget', 'required': False},
    {'name': '%unenc', 'required': True, 'alias': 'percent_unencumbered'},
    ]

I would like to help, but I don't quite understand how to implement these well enough. Let me know if you would like to give me directions on how to do it and I will give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant