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

Refactor File Types #4

Open
wpm opened this issue Apr 22, 2016 · 0 comments
Open

Refactor File Types #4

wpm opened this issue Apr 22, 2016 · 0 comments
Assignees

Comments

@wpm
Copy link
Contributor

wpm commented Apr 22, 2016

Make Themis file types subclass pandas.DataFrame. Put the code to load them via argparse in a static method. Change the output_format static method to __str__. Make __repr__ a head of the table along with the number of rows it contains. Move from_csv, to_csv, and print_csv functionality into these objects. Make column header names static variables inside the objects.

Pull these objects out into a separate source file and write documentation for each of them. This will make the code easier to read and more self-documenting.

No functionality change.

@wpm wpm self-assigned this Apr 22, 2016
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