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

Removed SA01 error for pandas.Series.to_frame. Added See Also section… #59262

Merged

Conversation

Aditya060
Copy link
Contributor

… to pandas.Series.to_frame. Modified ci/codecheks.sh and pandas/core/series.py.

… to pandas.Series.to_frame. Modified ci/codecheks.sh and pandas/core/series.py.
@Aditya060
Copy link
Contributor Author

Fixed SA01 error for pandas.Series.to_frame

pandas/core/series.py Outdated Show resolved Hide resolved
@mroeschke mroeschke added the Docs label Jul 17, 2024
@ktseng4096
Copy link
Contributor

Sorry about butting in but I figure it was better to comment than put up another PR. I had started looking into this one as well and thought the following would be good to include

DataFrame.squeeze: Create a series from a single-column DataFrame.

Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
@mroeschke mroeschke added this to the 3.0 milestone Jul 17, 2024
@mroeschke mroeschke merged commit fc8fc82 into pandas-dev:main Jul 17, 2024
45 checks passed
@mroeschke
Copy link
Member

Thanks @Aditya060

@Aditya060
Copy link
Contributor Author

Sorry about butting in but I figure it was better to comment than put up another PR. I had started looking into this one as well and thought the following would be good to include

DataFrame.squeeze: Create a series from a single-column DataFrame.

Hi, do you mean to include this in the See Also section of series.to_frame?

@ktseng4096
Copy link
Contributor

Sorry about butting in but I figure it was better to comment than put up another PR. I had started looking into this one as well and thought the following would be good to include

DataFrame.squeeze: Create a series from a single-column DataFrame.

Hi, do you mean to include this in the See Also section of series.to_frame?

Yea I thought including the inverse of the function would be helpful to some people.

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.

DOC: Enforce Numpy Docstring Validation | pandas.DataFrame
3 participants