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

make dtype to be ignored in constructors if data is Series or DataFrame #59383

Conversation

taranarmo
Copy link
Contributor

@taranarmo taranarmo commented Aug 1, 2024

The note in the docs added in #59300 wasn't sufficient: the dtype kwarg was ignored in certain cases. Set it to None if creating Series from another Series and the same for DataFrames. See GH #59060.

Request review from @mroeschke and @jorisvandenbossche

The note in the docs wasn't sufficient: the dtype kwarg was ignored in
certain cases. Set it to None if creating Series from another Series and
the same for DataFrames. See GH pandas-dev#59060.
@jbrockmendel
Copy link
Member

No. Dtype keyword should not be silently ignored

@taranarmo
Copy link
Contributor Author

@jbrockmendel in the original PR I added a warning initially, though I was told that it's too noisy and a line in the docs should be enough. Thus this PR just makes the code to act as said in the docs since the original PR is merged already.

@jbrockmendel
Copy link
Member

That PR was wrong. The keyword should never be silently ignored.

@taranarmo
Copy link
Contributor Author

As I said in the issue my PR should be reverted, I don't like the idea of silently ignoring the keywords. Though since the last one was approved I just decided to try to make it consistent. BTW ideas and suggestions are welcomed in the #59060.

@mroeschke
Copy link
Member

Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.

@mroeschke mroeschke closed this Aug 26, 2024
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.

BUG: dtype keyword in Series constructor ignored for Series input in certain cases
3 participants