Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pandas/core/strings/accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def _wrap_result(
)
result = {
label: ArrowExtensionArray(pa.array(res))
for label, res in zip(name, result.T)
for label, res in zip(name, result.T, strict=True)
}
elif is_object_dtype(result):

Expand Down Expand Up @@ -684,7 +684,8 @@ def cat(
elif na_rep is not None and union_mask.any():
# fill NaNs with na_rep in case there are actually any NaNs
all_cols = [
np.where(nm, na_rep, col) for nm, col in zip(na_masks, all_cols)
np.where(nm, na_rep, col)
for nm, col in zip(na_masks, all_cols, strict=True)
]
result = cat_safe(all_cols, sep)
else:
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,6 @@ exclude = [
"pandas/core/reshape/merge.py" = ["B905"]
"pandas/core/reshape/pivot.py" = ["B905"]
"pandas/core/reshape/reshape.py" = ["B905"]
"pandas/core/strings/accessor.py" = ["B905"]
"pandas/core/window/rolling.py" = ["B905"]
"pandas/_testing/asserters.py" = ["B905"]
"pandas/_testing/_warnings.py" = ["B905"]
Expand Down
Loading