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

issue 163: Updated documentation of remaining methods for creation of table #467

Merged
merged 13 commits into from
Oct 4, 2020

Conversation

CodTan
Copy link
Contributor

@CodTan CodTan commented Oct 2, 2020

Added examples for methods: from_records(), read_table(), from_df(), from_array()

[ ] Wrote test for feature
[ ] Added changes to CHANGELOG.md
[ ] Bumped version number (delete if unneeded)

Changes proposed:

Added an example for the from_records method
@coveralls
Copy link

coveralls commented Oct 2, 2020

Coverage Status

Coverage remained the same at 88.288% when pulling 1c702eb on CodTan:master into d865580 on data-8:master.

Added example for read_table
Added example for from_df for creation of table
Added example for from_array method for creation of a table
@CodTan CodTan changed the title issue 163: Updated documentation of method from_records for creation of Tables issue 163: Updated documentation of remaining methods for creation of table Oct 2, 2020
@CodTan CodTan mentioned this pull request Oct 2, 2020
41 tasks
@@ -115,11 +129,52 @@ def from_columns_dict(cls, columns):

@classmethod
def read_table(cls, filepath_or_buffer, *args, **vargs):
"""Read a table from a file or web address.
"""Read a table from a file or web address."""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the purpose/effect of changing this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no effect. Misinterpreted a previous PR, my bad!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've fixed the extra quotes in the last commit.

Removed unnecessary triple quotes
Updated docstrings to fix build failures
Updated docstring examples
Updated docstring examples for methods of Table creation
Updated docstring examples for from_array method
Updated output of from_array method
... {'column1':'data2','column2':2},
... {'column1':'data3','column2':3}
... ])
>>> print(t)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please change this to >>> t rather than print(t)? This way it stays consistent with all the other method's docstrings

... columns = ['column1','column2','column3']
... )

>>> print(sample_DF)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above comment - please remove the call to print function :)


>>> t = Table().from_df(sample_DF)

>>> print(t)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above comment - please remove the call to print function :)


>>> t = Table().from_array(arr)

>>> print(t)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above comment - please remove the call to print function :)

@adnanhemani
Copy link
Member

adnanhemani commented Oct 3, 2020

Thanks for this contribution! Please see my comments for additional required changes :) Also, please try to resolve the merge conflict as well

@CodTan
Copy link
Contributor Author

CodTan commented Oct 4, 2020

I have introduced the changes as requested :)

@adnanhemani adnanhemani merged commit 337d8b0 into data-8:master Oct 4, 2020
@adnanhemani
Copy link
Member

Thanks for the changes!

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

Successfully merging this pull request may close these issues.

None yet

4 participants