8000 DEPR: flags by jbrockmendel · Pull Request #52153 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

DEPR: flags #52153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7fc7c57
DEPR: flags
jbrockmendel Mar 24, 2023
ae203a0
Merge branch 'main' into depr-flags
jbrockmendel Mar 24, 2023
921cf01
Merge branch 'main' into depr-flags
jbrockmendel Apr 4, 2023
080e4a5
doctests, docbuild
jbrockmendel Apr 4, 2023
95186a5
mypy fixup
jbrockmendel Apr 5, 2023
1376aa8
Merge branch 'main' into depr-flags
jbrockmendel Apr 5, 2023
8e02b92
suppress doctest warnings
jbrockmendel Apr 5, 2023
5d34d68
Merge branch 'main' into depr-flags
jbrockmendel Apr 13, 2023
6dfbaf6
Merge branch 'main' into depr-flags
jbrockmendel Apr 19, 2023
1662321
Merge branch 'main' into depr-flags
jbrockmendel Apr 21, 2023
a170330
Merge branch 'main' into depr-flags
jbrockmendel Apr 29, 2023
8f82ef4
Merge branch 'main' into depr-flags
jbrockmendel May 5, 2023
5f91dfb
Merge branch 'main' into depr-flags
jbrockmendel May 16, 2023
d19ee09
Merge branch 'main' into depr-flags
jbrockmendel May 27, 2023
f5250e3
Merge branch 'main' into depr-flags
jbrockmendel Jun 30, 2023
797a761
Merge branch 'main' into depr-flags
jbrockmendel Jul 26, 2023
6613850
Merge branch 'main' into depr-flags
jbrockmendel Jul 27, 2023
f081865
Merge branch 'main' into depr-flags
jbrockmendel Aug 23, 2023
b0c910d
Merge branch 'main' into depr-flags
jbrockmendel Sep 14, 2023
9402b9e
Merge branch 'main' into depr-flags
jbrockmendel Oct 29, 2023
c4eb93d
Merge branch 'main' into depr-flags
jbrockmendel Dec 13, 2023
35d114b
Merge branch 'main' into depr-flags
jbrockmendel Dec 18, 2023
e67982c
update inspect.getmembers tests
jbrockmendel Dec 18, 2023
4e00ed9
Merge branch 'main' into depr-flags
jbrockmendel Dec 22, 2023
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
Prev Previous commit
Next Next commit
Merge branch 'main' into depr-flags
  • Loading branch information
jbrockmendel committed Apr 13, 2023
commit 5d34d68103827387bcb3d39a2be9d0a7d46077a0
10 changes: 7 additions & 3 deletions doc/source/whatsnew/v2.1.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -220,18 +220,22 @@ Deprecations
- Deprecating pinning ``group.name`` to each group in :meth:`SeriesGroupBy.aggregate` aggregations; if your operation requires utilizing the groupby keys, iterate over the groupby object instead (:issue:`41090`)
- Deprecated the 'axis' keyword in :meth:`.GroupBy.idxmax`, :meth:`.GroupBy.idxmin`, :meth:`.GroupBy.fillna`, :meth:`.GroupBy.take`, :meth:`.GroupBy.skew`, :meth:`.GroupBy.rank`, :meth:`.GroupBy.cumprod`, :meth:`.GroupBy.cumsum`, :meth:`.GroupBy.cummax`, :meth:`.GroupBy.cummin`, :meth:`.GroupBy.pct_change`, :meth:`GroupBy.diff`, :meth:`.GroupBy.shift`, and :meth:`DataFrameGroupBy.corrwith`; for ``axis=1`` operate on the underlying :class:`DataFrame` instead (:issue:`50405`, :issue:`51046`)
- Deprecated :meth:`DataFrame.flags`, :meth:`DataFrame.set_flags`, :meth:`Series.flags`, :meth:`Series.set_flags` (:issue:`#51280`)
- Deprecated passing a dictionary to :meth:`.SeriesGroupBy.agg`; pass a list of aggregations instead (:issue:`50684`)
- Deprecated logical operations (``|``, ``&``, ``^``) between pandas objects and dtype-less sequences (e.g. ``list``, ``tuple``), wrap a sequence in a :class:`Series` or numpy array before operating instead (:issue:`51521`)
- Deprecated the methods :meth:`Series.bool` and :meth:`DataFrame.bool` (:issue:`51749`)
- Deprecated :func:`is_categorical_dtype`, use ``isinstance(obj.dtype, pd.CategoricalDtype)`` instead (:issue:`52527`)
- Deprecated :func:`is_datetime64tz_dtype`, check ``isinstance(dtype, pd.DatetimeTZDtype)`` instead (:issue:`52607`)
- Deprecated :func:`is_int64_dtype`, check ``dtype == np.dtype(np.int64)`` instead (:issue:`52564`)
- Deprecated :func:`is_interval_dtype`, check ``isinstance(dtype, pd.IntervalDtype)`` instead (:issue:`52607`)
- Deprecated :meth:`DataFrame.swapaxes` and :meth:`Series.swapaxes`, use :meth:`DataFrame.transpose` or :meth:`Series.transpose` instead (:issue:`51946`)
- Deprecated ``freq`` parameter in :class:`PeriodArray` constructor, pass ``dtype`` instead (:issue:`52462`)
- Deprecated behavior of :meth:`Series.dt.to_pydatetime`, in a future version this will return a :class:`Series` containing python ``datetime`` objects instead of an ``ndarray`` of datetimes; this matches the behavior of other :meth:`Series.dt` properties (:issue:`20306`)
- Deprecated logical operations (``|``, ``&``, ``^``) between pandas objects and dtype-less sequences (e.g. ``list``, ``tuple``), wrap a sequence in a :class:`Series` or numpy array before operating instead (:issue:`51521`)
- Deprecated logical operations (``|``, ``&``, ``^``) between pandas objects and dtype-less sequences (e.g. ``list``, ``tuple``), wrap a sequence in a :class:`Series` or numpy array before operating instead (:issue:`51521`)
- Deprecated making :meth:`Series.apply` return a :class:`DataFrame` when the passed-in callable returns a :class:`Series` object. In the future this will return a :class:`Series` whose values are themselves :class:`Series`. This pattern was very slow and it's recommended to use alternative methods to archive the same goal (:issue:`52116`)
- Deprecated parameter ``convert_type`` in :meth:`Series.apply` (:issue:`52140`)
- Deprecated passing a dictionary to :meth:`.SeriesGroupBy.agg`; pass a list of aggregations instead (:issue:`50684`)
- Deprecated passing a dictionary to :meth:`.SeriesGroupBy.agg`; pass a list of aggregations instead (:issue:`50684`)
- Deprecated the "fastpath" keyword in :class:`Categorical` constructor, use :meth:`Categorical.from_codes` instead (:issue:`20110`)
- Deprecated the methods :meth:`Series.bool` and :meth:`DataFrame.bool` (:issue:`51749`)
- Deprecated the methods :meth:`Series.bool` and :meth:`DataFrame.bool` (:issue:`51749`)
- Deprecated unused "closed" and "normalize" keywords in the :class:`DatetimeIndex` constructor (:issue:`52628`)
- Deprecated unused "closed" keyword in the :class:`TimedeltaIndex` constructor (:issue:`52628`)
-
Expand Down
1 change: 1 addition & 0 deletions pandas/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def pytest_collection_modifyitems(items, config) -> None:
"DuplicateLabelError",
"Series.flags is deprecated and will be removed in a future version",
),
("is_categorical_dtype", "is_categorical_dtype is deprecated"),
]

for item in items:
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0