Skip to content
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

DEPR: Positional arguments in to_hdf except path_or_buf #54491

Merged
merged 6 commits into from
Aug 17, 2023
Merged

DEPR: Positional arguments in to_hdf except path_or_buf #54491

merged 6 commits into from
Aug 17, 2023

Conversation

rmhowe425
Copy link
Contributor

@rmhowe425 rmhowe425 commented Aug 11, 2023

@rmhowe425
Copy link
Contributor Author

@mroeschke Pinging on green

@mroeschke mroeschke added the IO HDF5 read_hdf, HDFStore label Aug 11, 2023
@@ -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`)
Copy link
Member

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?

@rmhowe425
Copy link
Contributor Author

@mroeschke Pinging on green

@mroeschke
Copy link
Member

Thanks just a merge conflict otherwise looks good

@rmhowe425
Copy link
Contributor Author

@mroeschke Merge conflict should be resolved now

@mroeschke mroeschke added this to the 2.2 milestone Aug 17, 2023
@mroeschke mroeschke merged commit 2c4c072 into pandas-dev:main Aug 17, 2023
36 of 37 checks passed
@mroeschke
Copy link
Member

Thanks @rmhowe425

mroeschke pushed a commit to mroeschke/pandas that referenced this pull request Aug 18, 2023
…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")
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rmhowe425 rmhowe425 deleted the dev/keyword/to_hdf branch February 17, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO HDF5 read_hdf, HDFStore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants