tests: fix pandas warnings

This commit is contained in:
Casper da Costa-Luis 2024-02-05 22:52:27 +00:00
parent a95cd88465
commit a4d15c8e2f
No known key found for this signature in database
GPG Key ID: F5126E5FBD2512AD
2 changed files with 7 additions and 0 deletions

View File

@ -28,6 +28,7 @@ dependencies:
- matplotlib # gui
- numpy # pandas, keras, contrib.tenumerate
- pandas
- pyarrow # pandas
- tensorflow # keras
- slack-sdk # contrib.slack
- requests # contrib.telegram

View File

@ -115,6 +115,8 @@ def test_pandas_data_frame():
f"\nExpected:\n{exres} at least once.\nIn:\n{our_file.read()}\n")
@mark.filterwarnings(
"ignore:DataFrameGroupBy.apply operated on the grouping columns:DeprecationWarning")
def test_pandas_groupby_apply():
"""Test pandas.DataFrame.groupby(...).progress_apply"""
with closing(StringIO()) as our_file:
@ -167,6 +169,8 @@ def test_pandas_groupby_apply():
f"\nExpected:\n{exres} at least once.\nIn:\n{our_file.read()}\n")
@mark.filterwarnings(
"ignore:DataFrameGroupBy.apply operated on the grouping columns:DeprecationWarning")
def test_pandas_leave():
"""Test pandas with `leave=True`"""
with closing(StringIO()) as our_file:
@ -201,6 +205,8 @@ def test_pandas_apply_args_deprecation():
"keyword arguments instead"))
@mark.filterwarnings(
"ignore:DataFrameGroupBy.apply operated on the grouping columns:DeprecationWarning")
def test_pandas_deprecation():
"""Test bar object instance as argument deprecation"""
try: