-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DEPR: Positional arguments in to_hdf except path_or_buf #54491
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
Conversation
@mroeschke Pinging on green |
doc/source/whatsnew/v2.1.0.rst
Outdated
@@ -601,6 +601,7 @@ Other Deprecations | |||
- Deprecated the use of non-supported datetime64 and timedelta64 resolutions with :func:`pandas.array`. Supported resolutions are: "s", "ms", "us", "ns" resolutions (:issue:`53058`) | |||
- Deprecated values "pad", "ffill", "bfill", "backfill" for :meth:`Series.interpolate` and :meth:`DataFrame.interpolate`, use ``obj.ffill()`` or ``obj.bfill()`` instead (:issue:`53581`) | |||
- Deprecated the behavior of :meth:`Index.argmax`, :meth:`Index.argmin`, :meth:`Series.argmax`, :meth:`Series.argmin` with either all-NAs and skipna=True or any-NAs and skipna=False returning -1; in a future version this will raise ``ValueError`` (:issue:`33941`, :issue:`33942`) | |||
- Deprecated allowing non-keyword arguments in :meth:`DataFrame.to_hdf` except ``path_or_buf``. (:issue:`54229`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you move this to v2.2.0.rst
?
@mroeschke Pinging on green |
Thanks just a merge conflict otherwise looks good |
@mroeschke Merge conflict should be resolved now |
Thanks @rmhowe425 |
…4491) * Adding deprecation, updating unit tests and documentation. * Fixing failing unit test. * Moving contribution to whatsnew/v2.2.0 * Update v2.1.0.rst
df = DataFrame([{"A": 1, "B": 2, "C": 3}, {"A": 1, "B": 2, "C": 3}]) | ||
|
||
with tm.assert_produces_warning(FutureWarning, match=msg): | ||
df.to_hdf("example", "key") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test is leaving behind an "example" file. can you do a follow-up to use tm.ensure_clean to avoid this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jbrockmendel sure
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.