We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
DataFrame.select_dtypes
main
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.select_dtypes.html
I want to select pyarrow string columns. The documentation says to ask for object dtypes, which will not capture pyarrow strings.
Actually, it may be a bug rather than a documentation problem. If I try something like this:
import pyarrow as pa df.select_dtypes(include=[pd.ArrowDtype(pa.string()), pd.ArrowDtype(pa.large_string())])
Then I get the following error: TypeError("string dtypes are not allowed, use 'object' instead")
TypeError("string dtypes are not allowed, use 'object' instead")
Just put this on the list of things that have to be done before pandas 3.0.
The text was updated successfully, but these errors were encountered:
Yeah select dtypes doesn't work great for EA dtypes, thanks for reporting
Sorry, something went wrong.
No branches or pull requests
Pandas version checks
main
hereLocation of the documentation
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.select_dtypes.html
Documentation problem
I want to select pyarrow string columns.
The documentation says to ask for object dtypes, which will not capture pyarrow strings.
Actually, it may be a bug rather than a documentation problem.
If I try something like this:
Then I get the following error:
TypeError("string dtypes are not allowed, use 'object' instead")
Suggested fix for documentation
Just put this on the list of things that have to be done before pandas 3.0.
The text was updated successfully, but these errors were encountered: