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

FIX: use str dtype without size information #8932

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion xarray/core/accessor_str.py
Expand Up @@ -121,7 +121,9 @@ def _apply_str_ufunc(
) -> Any:
# TODO handling of na values ?
if dtype is None:
dtype = obj.dtype
# need to strip length information from dtype
# otherwise changes in output size are not reflected
dtype = np.dtype(f"{obj.dtype.byteorder}{obj.dtype.char}")

dask_gufunc_kwargs = dict()
if output_sizes is not None:
Expand Down