Skip to content

TST: move mi tests from tests/indexing/ to tests/indexing/multiindex/ #24417

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

Merged
merged 14 commits into from
Dec 25, 2018

Conversation

simonjayhawkins
Copy link
Member

@simonjayhawkins simonjayhawkins commented Dec 24, 2018

@codecov
Copy link

codecov bot commented Dec 25, 2018

Codecov Report

Merging #24417 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #24417      +/-   ##
==========================================
- Coverage    92.3%    92.3%   -0.01%     
==========================================
  Files         163      163              
  Lines       51950    51946       -4     
==========================================
- Hits        47953    47949       -4     
  Misses       3997     3997
Flag Coverage Δ
#multiple 90.71% <ø> (-0.01%) ⬇️
#single 43% <ø> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/generic.py 96.62% <0%> (-0.01%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 159772d...2b6a8d4. Read the comment docs.

@codecov
Copy link

codecov bot commented Dec 25, 2018

Codecov Report

Merging #24417 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #24417      +/-   ##
==========================================
+ Coverage    92.3%    92.3%   +<.01%     
==========================================
  Files         163      163              
  Lines       51950    51954       +4     
==========================================
+ Hits        47953    47957       +4     
  Misses       3997     3997
Flag Coverage Δ
#multiple 90.71% <ø> (ø) ⬆️
#single 43% <ø> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/groupby/base.py 91.83% <0%> (ø) ⬆️
pandas/core/frame.py 96.91% <0%> (ø) ⬆️
pandas/core/base.py 97.68% <0%> (+0.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 159772d...fe9ee29. Read the comment docs.

import pandas.util.testing as tm


class TestIndexingSlow(object):
Copy link
Contributor

Choose a reason for hiding this comment

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

is this needed to be class based?

@@ -5,7 +5,8 @@
from pandas.util import testing as tm


@pytest.mark.filterwarnings('ignore:\\nPanel:FutureWarning')
@pytest.mark.filterwarnings('ignore::FutureWarning')
# @pytest.mark.filterwarnings('ignore:\\nPanel:FutureWarning')
Copy link
Contributor

Choose a reason for hiding this comment

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

extra?

df['A'] = df['A'].astype(np.float64)
tm.assert_index_equal(df.index, index)

# TODO(wesm): unused variables
Copy link
Contributor

Choose a reason for hiding this comment

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

you can remove this

import pytest

import pandas as pd
from pandas.core.api import DataFrame, MultiIndex, Series
from pandas.core.api import DataFrame
Copy link
Contributor

Choose a reason for hiding this comment

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

from pandas import

@jreback jreback added Testing pandas testing functions or related to the test suite Indexing Related to indexing on series/frames, not to indexes themselves MultiIndex labels Dec 25, 2018
keys = [randint(0, 11, m), choice(
list('abcdefghijk'), m), choice(
pd.date_range('20141009', periods=11).tolist(), m), choice(
list('ZYXWVUTSRQP'), m)]
Copy link
Contributor

Choose a reason for hiding this comment

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

ideally would like to split this massive test up, but as a followup

@jreback jreback added this to the 0.24.0 milestone Dec 25, 2018
@jreback jreback merged commit 1905485 into pandas-dev:master Dec 25, 2018
@jreback
Copy link
Contributor

jreback commented Dec 25, 2018

thanks @simonjayhawkins very nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Indexing Related to indexing on series/frames, not to indexes themselves MultiIndex Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants