mirror of https://github.com/tqdm/tqdm.git
tests: fix pandas warnings
This commit is contained in:
parent
a95cd88465
commit
a4d15c8e2f
|
@ -28,6 +28,7 @@ dependencies:
|
||||||
- matplotlib # gui
|
- matplotlib # gui
|
||||||
- numpy # pandas, keras, contrib.tenumerate
|
- numpy # pandas, keras, contrib.tenumerate
|
||||||
- pandas
|
- pandas
|
||||||
|
- pyarrow # pandas
|
||||||
- tensorflow # keras
|
- tensorflow # keras
|
||||||
- slack-sdk # contrib.slack
|
- slack-sdk # contrib.slack
|
||||||
- requests # contrib.telegram
|
- requests # contrib.telegram
|
||||||
|
|
|
@ -115,6 +115,8 @@ def test_pandas_data_frame():
|
||||||
f"\nExpected:\n{exres} at least once.\nIn:\n{our_file.read()}\n")
|
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():
|
def test_pandas_groupby_apply():
|
||||||
"""Test pandas.DataFrame.groupby(...).progress_apply"""
|
"""Test pandas.DataFrame.groupby(...).progress_apply"""
|
||||||
with closing(StringIO()) as our_file:
|
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")
|
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():
|
def test_pandas_leave():
|
||||||
"""Test pandas with `leave=True`"""
|
"""Test pandas with `leave=True`"""
|
||||||
with closing(StringIO()) as our_file:
|
with closing(StringIO()) as our_file:
|
||||||
|
@ -201,6 +205,8 @@ def test_pandas_apply_args_deprecation():
|
||||||
"keyword arguments instead"))
|
"keyword arguments instead"))
|
||||||
|
|
||||||
|
|
||||||
|
@mark.filterwarnings(
|
||||||
|
"ignore:DataFrameGroupBy.apply operated on the grouping columns:DeprecationWarning")
|
||||||
def test_pandas_deprecation():
|
def test_pandas_deprecation():
|
||||||
"""Test bar object instance as argument deprecation"""
|
"""Test bar object instance as argument deprecation"""
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue