Skip to content

DOC: Enforce Numpy Docstring Validation for pandas.HDFStore.info #58368

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

Merged

Conversation

tuhinsharma121
Copy link
Contributor

Comment on lines 1697 to 1711

Examples
--------
>>> df = pd.DataFrame([[1, 2], [3, 4]], columns=["A", "B"])
>>> df1 = pd.DataFrame([[1, 2], [3, 4]], columns=["A", "B"])
>>> df2 = pd.DataFrame([[5, 6], [7, 8]], columns=["C", "D"])
>>> store = pd.HDFStore("store.h5", "w") # doctest: +SKIP
>>> store.put("data", df) # doctest: +SKIP
>>> store.put("data1", df1) # doctest: +SKIP
>>> store.put("data2", df2) # doctest: +SKIP
>>> print(store.info()) # doctest: +SKIP
>>> store.close() # doctest: +SKIP
<class 'pandas.io.pytables.HDFStore'>
File path: store.h5
/data frame (shape->[2,2])
/data1 frame (shape->[2,2])
/data2 frame (shape->[2,2])
"""
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mroeschke I took the liberty to refine the example by adding one more dataframe. Let me know if this is good or I need to revert back.

Copy link
Member

Choose a reason for hiding this comment

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

Sure thanks for the addition

Comment on lines +1693 to 1697

See Also
--------
HDFStore.get_storer : Returns the storer object for a key.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mroeschke I could not find a closer method than this.

@tuhinsharma121 tuhinsharma121 changed the title Numpy docstring hdfstore info DOC: Enforce Numpy Docstring Validation for pandas.HDFStore.info Apr 22, 2024
@tuhinsharma121 tuhinsharma121 marked this pull request as ready for review April 22, 2024 05:36
@mroeschke mroeschke added the Docs label Apr 22, 2024
@mroeschke mroeschke added this to the 3.0 milestone Apr 22, 2024
@mroeschke mroeschke merged commit 09c7201 into pandas-dev:main Apr 22, 2024
49 of 50 checks passed
@mroeschke
Copy link
Member

Thanks @tuhinsharma121

kvnwng11 pushed a commit to kvnwng11/pandas that referenced this pull request Apr 22, 2024
…das-dev#58368)

* DOC: add return description and see also section to pandas.HDFStore.info

* DOC: add 2 df in the examples for pandas.HDFStore.info

* DOC: remove pandas.HDFStore.info
@tuhinsharma121 tuhinsharma121 deleted the numpy-docstring-hdfstore-info branch April 26, 2024 02:57
pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
…das-dev#58368)

* DOC: add return description and see also section to pandas.HDFStore.info

* DOC: add 2 df in the examples for pandas.HDFStore.info

* DOC: remove pandas.HDFStore.info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants