8000 DEPR: Panel deprecated by jreback · Pull Request #15601 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

DEPR: Panel deprecated #15601

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

Closed
wants to merge 15 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
TST: separate out test_append_to_multiple_dropna to two tests; when d…
…rop=False this is sometimes failing
  • Loading branch information
jreback committed Apr 7, 2017
commit 912d5239e00705ce72cd3928bb6432ccd31be558
8000
24 changes: 19 additions & 5 deletions pandas/tests/io/test_pytables.py
Original file line number Diff line number Diff line change
Expand Up @@ -4052,6 +4052,7 @@ def test_append_to_multiple_dropna(self):
df = concat([df1, df2], axis=1)

with ensure_clean_store(self.path) as store:

# dropna=True should guarantee rows are synchronized
store.append_to_multiple(
{'df1': ['A', 'B'], 'df2': None}, df, selector='df1',
Expand All @@ -4062,14 +4063,27 @@ def test_append_to_multiple_dropna(self):
tm.assert_index_equal(store.select('df1').index,
store.select('df2').index)

@pytest.mark.xfail(run=False,
reason="append_to_multiple_dropna_false "
"is not raising as failed")
def test_append_to_multiple_dropna_false(self):
df1 = tm.makeTimeDataFrame()
df2 = tm.makeTimeDataFrame().rename(columns=lambda x: "%s_2" % x)
df1.iloc[1, df1.columns.get_indexer(['A', 'B'])] = np.nan
df = concat([df1, df2], axis=1)

with ensure_clean_store(self.path) as store:

# dropna=False shouldn't synchronize row indexes
store.append_to_multiple(
{'df1': ['A', 'B'], 'df2': None}, df, selector='df1',
{'df1a': ['A', 'B'], 'df2a': None}, df, selector='df1a',
dropna=False)
self.assertRaises(
ValueError, store.select_as_multiple, ['df1', 'df2'])
assert not store.select('df1').index.equals(
store.select( 5540 9;df2').index)

with pytest.raises(ValueError):
store.select_as_multiple(['df1a', 'df2a'])

assert not store.select('df1a').index.equals(
store.select('df2a').index)

def test_select_as_multiple(self):

Expand Down
0