Skip to content

Commit

Permalink
better test
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback committed Jul 11, 2019
1 parent c1db8d6 commit 2b9e2e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pandas/tests/series/test_explode.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@


def test_basic():
s = pd.Series([[0, 1, 2], np.nan, [], (3, 4)], name="foo")
s = pd.Series([[0, 1, 2], np.nan, [], (3, 4)],
index=list('abcd'),
name="foo")
result = s.explode()
expected = pd.Series(
[0, 1, 2, np.nan, np.nan, 3, 4],
index=[0, 0, 0, 1, 2, 3, 3],
index=list('aaabcdd'),
dtype=object,
name="foo",
)
Expand Down

0 comments on commit 2b9e2e6

Please sign in to comment.