Skip to content

Commit

Permalink
Backport fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd committed Aug 15, 2024
1 parent de6f40b commit a2c3db0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
push:
branches:
- main
- 2.2.x
- 2.3.x
pull_request:
branches:
- main
- 2.2.x
- 2.3.x
paths-ignore:
- "doc/**"
- "web/**"
Expand Down
4 changes: 2 additions & 2 deletions pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from pandas._config import (
get_option,
using_copy_on_write,
using_pyarrow_string_dtype,
using_string_dtype,
)

from pandas._libs import (
Expand Down Expand Up @@ -7015,7 +7015,7 @@ def insert(self, loc: int, item) -> Index:

out = Index._with_infer(new_values, name=self.name)
if (
using_pyarrow_string_dtype()
using_string_dtype()
and is_string_dtype(out.dtype)
and new_values.dtype == object
):
Expand Down

0 comments on commit a2c3db0

Please sign in to comment.