Skip to content

Commit 9eade03

Browse files
authored
3.5.3 with no warning for merge method (#121)
1 parent 2697f64 commit 9eade03

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# TFS-Pandas Changelog
22

3+
## Version 3.5.3
4+
5+
- Changed:
6+
- Fixed a wrong deprecation of the `.merge` method of `TfsDataFrames`.
7+
38
## Version 3.5.2
49

510
- Changed:

tfs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
__title__ = "tfs-pandas"
1111
__description__ = "Read and write tfs files."
1212
__url__ = "https://github.com/pylhc/tfs"
13-
__version__ = "3.5.2"
13+
__version__ = "3.5.3"
1414
__author__ = "pylhc"
1515
__author_email__ = "[email protected]"
1616
__license__ = "MIT"

tfs/frame.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,6 @@ def merge(
194194
``pandas.Dataframe`` method of the same name. Resulting headers are either merged according to the
195195
provided **how_headers** method or as given via **new_headers**.
196196
197-
..warning::
198-
This method uses ``pandas.DataFrame.merge`` internally, which has been deprecated for a
199-
while and removed with pandas 2.0. It will be removed from ``tfs-pandas`` as well in the
200-
next release.
201-
202197
Args:
203198
right (Union[TfsDataFrame, pd.DataFrame]): The ``TfsDataFrame`` to merge with the caller.
204199
how_headers (str): Type of merge to be performed for the headers. Either **left** or **right**.
@@ -217,7 +212,6 @@ def merge(
217212
Returns:
218213
A new ``TfsDataFrame`` with the merged data and merged headers.
219214
"""
220-
LOGGER.warn("This method has been removed in pandas 2.0 and will be removed from TfsDataFrames too. Please use 'tfs.frame.concat' instead.")
221215
LOGGER.debug("Merging data through 'pandas'")
222216
if not hasattr(right, "headers"):
223217
LOGGER.debug("Converting 'right' to TfsDataFrame for merging")

0 commit comments

Comments
 (0)