From f790ab7d2573e7b4e11450c920b17ff5adca3702 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Wed, 16 Jul 2025 19:08:31 +0200 Subject: [PATCH 1/7] enable errors on doc build again --- .github/workflows/docbuild-and-upload.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/docbuild-and-upload.yml b/.github/workflows/docbuild-and-upload.yml index e982b18ec7274..ba9e30e088c66 100644 --- a/.github/workflows/docbuild-and-upload.yml +++ b/.github/workflows/docbuild-and-upload.yml @@ -57,8 +57,6 @@ jobs: run: python web/pandas_web.py web/pandas --target-path=web/build - name: Build documentation - # TEMP don't let errors fail the build until all string dtype changes are fixed - continue-on-error: true run: doc/make.py --warnings-are-errors - name: Build the interactive terminal From 11cbd611dee2cf2676c054412baff109be1c1b93 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Tue, 15 Jul 2025 17:07:01 +0200 Subject: [PATCH 2/7] basics.rst: describe include object -> str --- doc/source/user_guide/basics.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/user_guide/basics.rst b/doc/source/user_guide/basics.rst index 8155aa0ae03fa..3fdd15462b51e 100644 --- a/doc/source/user_guide/basics.rst +++ b/doc/source/user_guide/basics.rst @@ -590,7 +590,7 @@ arguments. The special value ``all`` can also be used: .. ipython:: python - frame.describe(include=["object"]) + frame.describe(include=["str"]) frame.describe(include=["number"]) frame.describe(include="all") From 5ca27c130340409451b979d6b5a37ab3bbd95887 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Tue, 15 Jul 2025 18:01:56 +0200 Subject: [PATCH 3/7] io.rst: disable fastparquet example --- doc/source/user_guide/io.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 34c469bfc535b..6cbda151e0147 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -5281,13 +5281,13 @@ Write to a parquet file. .. ipython:: python df.to_parquet("example_pa.parquet", engine="pyarrow") - df.to_parquet("example_fp.parquet", engine="fastparquet") + # df.to_parquet("example_fp.parquet", engine="fastparquet") Read from a parquet file. .. ipython:: python - result = pd.read_parquet("example_fp.parquet", engine="fastparquet") + # result = pd.read_parquet("example_fp.parquet", engine="fastparquet") result = pd.read_parquet("example_pa.parquet", engine="pyarrow") result.dtypes @@ -5309,11 +5309,11 @@ Read only certain columns of a parquet file. .. ipython:: python - result = pd.read_parquet( - "example_fp.parquet", - engine="fastparquet", - columns=["a", "b"], - ) + # result = pd.read_parquet( + # "example_fp.parquet", + # engine="fastparquet", + # columns=["a", "b"], + # ) result = pd.read_parquet( "example_pa.parquet", engine="pyarrow", @@ -5326,7 +5326,7 @@ Read only certain columns of a parquet file. :suppress: os.remove("example_pa.parquet") - os.remove("example_fp.parquet") + # os.remove("example_fp.parquet") Handling indexes From 6d4d6740aefa490dbc1e227a593441094748f984 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Tue, 15 Jul 2025 18:12:47 +0200 Subject: [PATCH 4/7] temp disable unit tests --- .github/workflows/unit-tests.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index d2899e3838683..9cd3df5af900d 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -5,13 +5,13 @@ on: branches: - main - 2.3.x - pull_request: - branches: - - main - - 2.3.x - paths-ignore: - - "doc/**" - - "web/**" + # pull_request: + # branches: + # - main + # - 2.3.x + # paths-ignore: + # - "doc/**" + # - "web/**" permissions: contents: read From 61310c6923dfbf3b5301d02b7a368d83c3729388 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Tue, 15 Jul 2025 18:20:18 +0200 Subject: [PATCH 5/7] v0.13.0.rst: fix assignment of int into string column --- doc/source/whatsnew/v0.13.0.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/whatsnew/v0.13.0.rst b/doc/source/whatsnew/v0.13.0.rst index 8e323d8aac5e3..30f7f4dc97e63 100644 --- a/doc/source/whatsnew/v0.13.0.rst +++ b/doc/source/whatsnew/v0.13.0.rst @@ -184,7 +184,7 @@ API changes .. ipython:: python :okwarning: - dfc.loc[0]['A'] = 1111 + dfc.loc[0]['B'] = 1111 :: @@ -198,7 +198,7 @@ API changes .. ipython:: python - dfc.loc[0, 'A'] = 11 + dfc.loc[0, 'B'] = 1111 dfc - ``Panel.reindex`` has the following call signature ``Panel.reindex(items=None, major_axis=None, minor_axis=None, **kwargs)`` From 85bc3befc05c9fc805bfd14ffb1c687cecae27fd Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Tue, 15 Jul 2025 19:47:46 +0200 Subject: [PATCH 6/7] v0.15.0.rst: convert describe include example to plain code block --- doc/source/whatsnew/v0.15.0.rst | 47 ++++++++++++++++++++++++++------- 1 file changed, 38 insertions(+), 9 deletions(-) diff --git a/doc/source/whatsnew/v0.15.0.rst b/doc/source/whatsnew/v0.15.0.rst index 1ee7c5cbc6b9e..4e745f042d5c8 100644 --- a/doc/source/whatsnew/v0.15.0.rst +++ b/doc/source/whatsnew/v0.15.0.rst @@ -1025,20 +1025,49 @@ Other: - :func:`describe` on mixed-types DataFrames is more flexible. Type-based column filtering is now possible via the ``include``/``exclude`` arguments. See the :ref:`docs ` (:issue:`8164`). - .. ipython:: python + .. code-block:: python - df = pd.DataFrame({'catA': ['foo', 'foo', 'bar'] * 8, - 'catB': ['a', 'b', 'c', 'd'] * 6, - 'numC': np.arange(24), - 'numD': np.arange(24.) + .5}) - df.describe(include=["object"]) - df.describe(include=["number", "object"], exclude=["float"]) + >>> df = pd.DataFrame({'catA': ['foo', 'foo', 'bar'] * 8, + ... 'catB': ['a', 'b', 'c', 'd'] * 6, + ... 'numC': np.arange(24), + ... 'numD': np.arange(24.) + .5}) + >>> df.describe(include=["object"]) + catA catB + count 24 24 + unique 2 4 + top foo a + freq 16 6 + >>> df.describe(include=["number", "object"], exclude=["float"]) + catA catB numC + count 24 24 24.000000 + unique 2 4 NaN + top foo a NaN + freq 16 6 NaN + mean NaN NaN 11.500000 + std NaN NaN 7.071068 + min NaN NaN 0.000000 + 25% NaN NaN 5.750000 + 50% NaN NaN 11.500000 + 75% NaN NaN 17.250000 + max NaN NaN 23.000000 Requesting all columns is possible with the shorthand 'all' - .. ipython:: python + .. code-block:: python - df.describe(include='all') + >>> df.describe(include='all') + catA catB numC numD + count 24 24 24.000000 24.000000 + unique 2 4 NaN NaN + top foo a NaN NaN + freq 16 6 NaN NaN + mean NaN NaN 11.500000 12.000000 + std NaN NaN 7.071068 7.071068 + min NaN NaN 0.000000 0.500000 + 25% NaN NaN 5.750000 6.250000 + 50% NaN NaN 11.500000 12.000000 + 75% NaN NaN 17.250000 17.750000 + max NaN NaN 23.000000 23.500000 Without those arguments, ``describe`` will behave as before, including only numerical columns or, if none are, only categorical columns. See also the :ref:`docs ` From ec7164e2feb0ceae9fe141de596c92029525b2af Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Thu, 17 Jul 2025 08:37:52 +0200 Subject: [PATCH 7/7] Revert "temp disable unit tests" This reverts commit 6d4d6740aefa490dbc1e227a593441094748f984. --- .github/workflows/unit-tests.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 9cd3df5af900d..d2899e3838683 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -5,13 +5,13 @@ on: branches: - main - 2.3.x - # pull_request: - # branches: - # - main - # - 2.3.x - # paths-ignore: - # - "doc/**" - # - "web/**" + pull_request: + branches: + - main + - 2.3.x + paths-ignore: + - "doc/**" + - "web/**" permissions: contents: read