Skip to content

Commit 71ec2d6

Browse files
authored
Merge branch 'main' into bug-agg-nonunique-col
2 parents 14ef7e9 + d69eaae commit 71ec2d6

File tree

7 files changed

+23
-7
lines changed

7 files changed

+23
-7
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2.1
33
jobs:
44
test-arm:
55
machine:
6-
image: ubuntu-2004:202101-01
6+
image: ubuntu-2004:2022.04.1
77
resource_class: arm.large
88
environment:
99
ENV_FILE: ci/deps/circle-38-arm64.yaml
@@ -23,7 +23,7 @@ jobs:
2323
cibw-build:
2424
type: string
2525
machine:
26-
image: ubuntu-2004:202101-01
26+
image: ubuntu-2004:2022.04.1
2727
resource_class: arm.large
2828
environment:
2929
ENV_FILE: ci/deps/circle-38-arm64.yaml
@@ -48,7 +48,7 @@ jobs:
4848
- run:
4949
name: Build aarch64 wheels
5050
command: |
51-
pip3 install cibuildwheel==2.9.0
51+
pip3 install cibuildwheel==2.12.1
5252
cibuildwheel --output-dir wheelhouse
5353
environment:
5454
CIBW_BUILD: << parameters.cibw-build >>
@@ -57,7 +57,7 @@ jobs:
5757
name: Install Anaconda Client & Upload Wheels
5858
command: |
5959
echo "Install Mambaforge"
60-
MAMBA_URL="https://github.com/conda-forge/miniforge/releases/download/4.14.0-0/Mambaforge-4.14.0-0-Linux-aarch64.sh"
60+
MAMBA_URL="https://github.com/conda-forge/miniforge/releases/download/23.1.0-0/Mambaforge-23.1.0-0-Linux-aarch64.sh"
6161
echo "Downloading $MAMBA_URL"
6262
wget -q $MAMBA_URL -O minimamba.sh
6363
chmod +x minimamba.sh

.circleci/setup_env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash -e
22

33
echo "Install Mambaforge"
4-
MAMBA_URL="https://github.com/conda-forge/miniforge/releases/download/4.14.0-0/Mambaforge-4.14.0-0-Linux-aarch64.sh"
4+
MAMBA_URL="https://github.com/conda-forge/miniforge/releases/download/23.1.0-0/Mambaforge-23.1.0-0-Linux-aarch64.sh"
55
echo "Downloading $MAMBA_URL"
66
wget -q $MAMBA_URL -O minimamba.sh
77
chmod +x minimamba.sh

doc/source/whatsnew/v2.1.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ Other
274274
^^^^^
275275
- Bug in :func:`assert_almost_equal` now throwing assertion error for two unequal sets (:issue:`51727`)
276276
- Bug in :meth:`Series.memory_usage` when ``deep=True`` throw an error with Series of objects and the returned value is incorrect, as it does not take into account GC corrections (:issue:`51858`)
277+
- Bug in :func:`assert_frame_equal` checks category dtypes even when asked not to check index type (:issue:`52126`)
277278

278279
.. ***DO NOT USE THIS SECTION***
279280

pandas/_testing/asserters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ def _get_ilevel_values(index, level):
300300
exact=exact,
301301
check_names=check_names,
302302
check_exact=check_exact,
303+
check_categorical=check_categorical,
303304
rtol=rtol,
304305
atol=atol,
305306
obj=lobj,

pandas/core/arrays/arrow/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,7 @@ def _dt_second(self):
20152015

20162016
@property
20172017
def _dt_date(self):
2018-
return type(self)(self._pa_array.cast(pa.date64()))
2018+
return type(self)(self._pa_array.cast(pa.date32()))
20192019

20202020
@property
20212021
def _dt_time(self):

pandas/tests/extension/test_arrow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2156,7 +2156,7 @@ def test_dt_properties(prop, expected):
21562156
result = getattr(ser.dt, prop)
21572157
exp_type = None
21582158
if isinstance(expected, date):
2159-
exp_type = pa.date64()
2159+
exp_type = pa.date32()
21602160
elif isinstance(expected, time):
21612161
exp_type = pa.time64("ns")
21622162
expected = pd.Series(ArrowExtensionArray(pa.array([expected, None], type=exp_type)))

pandas/tests/util/test_assert_index_equal.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,3 +299,17 @@ def test_assert_ea_index_equal_non_matching_na(check_names, check_categorical):
299299
tm.assert_index_equal(
300300
idx1, idx2, check_names=check_names, check_categorical=check_categorical
301301
)
302+
303+
304+
@pytest.mark.parametrize("check_categorical", [True, False])
305+
def test_assert_multi_index_dtype_check_categorical(check_categorical):
306+
# GH#52126
307+
idx1 = MultiIndex.from_arrays([Categorical(np.array([1, 2], dtype=np.uint64))])
308+
idx2 = MultiIndex.from_arrays([Categorical(np.array([1, 2], dtype=np.int64))])
309+
if check_categorical:
310+
with pytest.raises(
311+
AssertionError, match=r"^MultiIndex level \[0\] are different"
312+
):
313+
tm.assert_index_equal(idx1, idx2, check_categorical=check_categorical)
314+
else:
315+
tm.assert_index_equal(idx1, idx2, check_categorical=check_categorical)

0 commit comments

Comments
 (0)