-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #24417 +/- ##
==========================================
+ Coverage 92.3% 92.3% +<.01%
==========================================
Files 163 163
Lines 51950 51954 +4
==========================================
+ Hits 47953 47957 +4
Misses 3997 3997
Continue to review full report at Codecov.
|
import pandas.util.testing as tm | ||
|
||
|
||
class TestIndexingSlow(object): |
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from pandas import
keys = [randint(0, 11, m), choice( | ||
list('abcdefghijk'), m), choice( | ||
pd.date_range('20141009', periods=11).tolist(), m), choice( | ||
list('ZYXWVUTSRQP'), m)] |
There was a problem hiding this comment.
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
thanks @simonjayhawkins very nice. |
git diff upstream/master -u -- "*.py" | flake8 --diff