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

Create unique id per row #17

Open
rosnfeld opened this issue Jan 23, 2014 · 2 comments
Open

Create unique id per row #17

rosnfeld opened this issue Jan 23, 2014 · 2 comments
Assignees

Comments

@rosnfeld
Copy link
Owner

Currently using pandas index id for the master frame, which isn't stable upon data updates and thus manual exclusions would break.

Maybe create some sort of hash on certain columns? (shouldn't be all the columns, because they will likely add columns at some point) Maybe whatever can be used to identify a manual exclusion - most likely the free text columns along with year, donor, recipient.

@ghost ghost assigned rosnfeld Jan 23, 2014
@rosnfeld
Copy link
Owner Author

I'm not sure if this is even possible, using

id_columns = ['Year', 'donorcode', 'agencycode', 'recipientcode', 'crsid', 'projecttitle', 'shortdescription', 'longdescription', 'usd_disbursement']

still yields (a few) duplicates.

@rosnfeld
Copy link
Owner Author

Well, using all columns as the key there are no duplicates.

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