Skip to content

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 Aditya060 requested a review from mroeschke as a code owner July 17, 2024 12:29
@Aditya060
Copy link
Contributor Author

Fixed SA01 error for pandas.Series.to_frame

@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 <[email protected]>
Co-authored-by: Matthew Roeschke <[email protected]>
@mroeschke mroeschke added this to the 3.0 milestone Jul 17, 2024
@mroeschke mroeschke merged commit fc8fc82 into pandas-dev:main Jul 17, 2024
@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