-
Notifications
You must be signed in to change notification settings - Fork 4
Improved handling of common data types and documented supported data types #25
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
Conversation
Also: - Added data_types.py example TODO: - Updated README.md - Add unit tests
They are now dealt within in the same way as the tabulate package which assumes the keys are column labels and the values are iterables containing the column values.
Also: - Updated README.md to briefly mention supported data types - Updated tox.ini to install numpy and pandas for testing supported data types
Prior to 3.6 dictionaries are not ordered by default
Codecov Report
@@ Coverage Diff @@
## master #25 +/- ##
==========================================
+ Coverage 88.05% 88.33% +0.28%
==========================================
Files 1 1
Lines 829 849 +20
==========================================
+ Hits 730 750 +20
Misses 99 99
Continue to review full report at Codecov.
|
…are installed
Also:
- numpy and pandas no longer installed by tox on Python 3.4 (installed for all other Python versions)
- This is to fix a crazy slow install time on Python 3.4 and to also hopefully to increase code coverage
|
@anselor
I also improved how Numpy record arrays are handled, though I believe I slightly deviated from how The one outstanding question in my mind is should we modify how we handle iterables of dictionaries to be identical to how |
|
@anselor If you don't have any feedback I'll merge this in sometime this weekend |
|
It may not be the perfect solution, but it is definitely an improvement and a step in the right direction, so I am going to merge it in. We can improve it further as we best see fit. |
Added special handling to
generate_table()for the following data types:pandasDataFramenumpyrecord arraysAlso:
This closes #23
This closes #24