Skip to content

Commit 2e52720

Browse files
authored
Merge branch 'main' into to_timestamp
2 parents 23a58c2 + aea1643 commit 2e52720

File tree

27 files changed

+131
-68
lines changed

27 files changed

+131
-68
lines changed

.github/workflows/code-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44
push:
55
branches:
66
- main
7-
- 2.2.x
7+
- 2.3.x
88
pull_request:
99
branches:
1010
- main
11-
- 2.2.x
11+
- 2.3.x
1212

1313
env:
1414
ENV_FILE: environment.yml

.github/workflows/docbuild-and-upload.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ on:
44
push:
55
branches:
66
- main
7-
- 2.2.x
7+
- 2.3.x
88
tags:
99
- '*'
1010
pull_request:
1111
branches:
1212
- main
13-
- 2.2.x
13+
- 2.3.x
1414

1515
env:
1616
ENV_FILE: environment.yml

.github/workflows/package-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44
push:
55
branches:
66
- main
7-
- 2.2.x
7+
- 2.3.x
88
pull_request:
99
branches:
1010
- main
11-
- 2.2.x
11+
- 2.3.x
1212
types: [ labeled, opened, synchronize, reopened ]
1313

1414
permissions:

.github/workflows/unit-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44
push:
55
branches:
66
- main
7-
- 2.2.x
7+
- 2.3.x
88
pull_request:
99
branches:
1010
- main
11-
- 2.2.x
11+
- 2.3.x
1212
paths-ignore:
1313
- "doc/**"
1414
- "web/**"

doc/source/whatsnew/v3.0.0.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ Bug fixes
545545

546546
Categorical
547547
^^^^^^^^^^^
548-
-
548+
- Bug in :func:`Series.apply` where ``nan`` was ignored for :class:`CategoricalDtype` (:issue:`59938`)
549549
-
550550

551551
Datetimelike
@@ -621,6 +621,7 @@ I/O
621621
^^^
622622
- Bug in :class:`DataFrame` and :class:`Series` ``repr`` of :py:class:`collections.abc.Mapping`` elements. (:issue:`57915`)
623623
- Bug in :meth:`.DataFrame.to_json` when ``"index"`` was a value in the :attr:`DataFrame.column` and :attr:`Index.name` was ``None``. Now, this will fail with a ``ValueError`` (:issue:`58925`)
624+
- Bug in :meth:`DataFrame._repr_html_` which ignored the ``"display.float_format"`` option (:issue:`59876`)
624625
- Bug in :meth:`DataFrame.from_records` where ``columns`` parameter with numpy structured array was not reordering and filtering out the columns (:issue:`59717`)
625626
- Bug in :meth:`DataFrame.to_dict` raises unnecessary ``UserWarning`` when columns are not unique and ``orient='tight'``. (:issue:`58281`)
626627
- Bug in :meth:`DataFrame.to_excel` when writing empty :class:`DataFrame` with :class:`MultiIndex` on both axes (:issue:`57696`)
@@ -653,6 +654,7 @@ Plotting
653654
Groupby/resample/rolling
654655
^^^^^^^^^^^^^^^^^^^^^^^^
655656
- Bug in :meth:`.DataFrameGroupBy.__len__` and :meth:`.SeriesGroupBy.__len__` would raise when the grouping contained NA values and ``dropna=False`` (:issue:`58644`)
657+
- Bug in :meth:`.DataFrameGroupBy.any` that returned True for groups where all Timedelta values are NaT. (:issue:`59712`)
656658
- Bug in :meth:`.DataFrameGroupBy.groups` and :meth:`.SeriesGroupby.groups` that would not respect groupby argument ``dropna`` (:issue:`55919`)
657659
- Bug in :meth:`.DataFrameGroupBy.median` where nat values gave an incorrect result. (:issue:`57926`)
658660
- Bug in :meth:`.DataFrameGroupBy.quantile` when ``interpolation="nearest"`` is inconsistent with :meth:`DataFrame.quantile` (:issue:`47942`)
@@ -681,6 +683,7 @@ Sparse
681683
^^^^^^
682684
- Bug in :class:`SparseDtype` for equal comparison with na fill value. (:issue:`54770`)
683685
- Bug in :meth:`DataFrame.sparse.from_spmatrix` which hard coded an invalid ``fill_value`` for certain subtypes. (:issue:`59063`)
686+
- Bug in :meth:`DataFrame.sparse.to_dense` which ignored subclassing and always returned an instance of :class:`DataFrame` (:issue:`59913`)
684687

685688
ExtensionArray
686689
^^^^^^^^^^^^^^
@@ -698,6 +701,7 @@ Other
698701
- Bug in :class:`DataFrame` when passing a ``dict`` with a NA scalar and ``columns`` that would always return ``np.nan`` (:issue:`57205`)
699702
- Bug in :func:`eval` on :class:`ExtensionArray` on including division ``/`` failed with a ``TypeError``. (:issue:`58748`)
700703
- Bug in :func:`eval` where the names of the :class:`Series` were not preserved when using ``engine="numexpr"``. (:issue:`10239`)
704+
- Bug in :func:`eval` with ``engine="numexpr"`` returning unexpected result for float division. (:issue:`59736`)
701705
- Bug in :func:`unique` on :class:`Index` not always returning :class:`Index` (:issue:`57043`)
702706
- Bug in :meth:`DataFrame.apply` where passing ``engine="numba"`` ignored ``args`` passed to the applied function (:issue:`58712`)
703707
- Bug in :meth:`DataFrame.eval` and :meth:`DataFrame.query` which caused an exception when using NumPy attributes via ``@`` notation, e.g., ``df.eval("@np.floor(a)")``. (:issue:`58041`)

pandas/_libs/include/pandas/datetime/date_conversions.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The full license is in the LICENSE file, distributed with this software.
99

1010
#define PY_SSIZE_T_CLEAN
1111
#include <Python.h>
12+
1213
#include <numpy/ndarraytypes.h>
1314

1415
// Scales value inplace from nanosecond resolution to unit resolution

pandas/_libs/include/pandas/parser/io.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ The full license is in the LICENSE file, distributed with this software.
1010
#pragma once
1111

1212
#define PY_SSIZE_T_CLEAN
13-
#include "tokenizer.h"
1413
#include <Python.h>
1514

15+
#include "tokenizer.h"
16+
1617
#define FS(source) ((file_source *)source)
1718

1819
typedef struct _rd_source {

pandas/_libs/include/pandas/parser/pd_parser.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ extern "C" {
1313
#endif
1414

1515
#define PY_SSIZE_T_CLEAN
16-
#include "pandas/parser/tokenizer.h"
1716
#include <Python.h>
1817

18+
#include "pandas/parser/tokenizer.h"
19+
1920
typedef struct {
2021
int (*to_double)(char *, double *, char, char, int *);
2122
int (*floatify)(PyObject *, double *, int *);

pandas/_libs/include/pandas/vendored/klib/khash_python.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#pragma once
44

55
#include <Python.h>
6+
67
#include <pymem.h>
78
#include <string.h>
89

pandas/_libs/src/vendored/ujson/python/JSONtoObj.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ Numeric decoder derived from TCL library
3838

3939
// Licence at LICENSES/ULTRAJSON_LICENSE
4040

41-
// clang-format off
4241
#define PY_SSIZE_T_CLEAN
4342
#include <Python.h>
43+
4444
#include "pandas/vendored/ujson/lib/ultrajson.h"
45-
// clang-format on
4645

4746
static int Object_objectAddKey(void *Py_UNUSED(prv), JSOBJ obj, JSOBJ name,
4847
JSOBJ value) {

0 commit comments

Comments
 (0)