Skip to content

Conversation

zihengliao
Copy link

Added a note clarifying dtype conversions for returned outputs of the .iloc function

@zihengliao zihengliao closed this Sep 17, 2025
@zihengliao zihengliao reopened this Sep 17, 2025
@zihengliao zihengliao closed this Sep 17, 2025
@zihengliao zihengliao force-pushed the bug/undocumented_conversions branch from bda7cf5 to 6ad23cf Compare September 17, 2025 10:49
@zihengliao zihengliao reopened this Sep 17, 2025
Copy link
Member

@simonjayhawkins simonjayhawkins left a comment

Choose a reason for hiding this comment

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

Thanks @zihengliao for the PR.

Is this addition correct and in the correct part of the documentation?

The issue is about the return type when selecting rows from a homogeneous DataFrame. .iloc was used in the example but the issue is not about .iloc per se. There are other methods that can return rows where this coercion also occurs?

Also, note that .iloc can return, as well as rows, multiple rows, columns and multiple columns. So there are cases when the added statement is not correct so more context is needed?

Note that the issue is still tagged Needs Triage so no agreement on a solution has been reached or even yet discussed?

@mroeschke
Copy link
Member

Agreed, closing this pull request until more discussion has happened in the issue.

@mroeschke mroeschke closed this Sep 19, 2025
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.

3 participants