Skip to content

Commit 968e9a5

Browse files
code sample for pandas-dev#43314
1 parent 680a834 commit 968e9a5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

bisect/43314.py

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# BUG: DataFrame.explode is failing on scalar int value. #43314
2+
3+
import numpy as np
4+
import pandas as pd
5+
6+
print(pd.__version__)
7+
8+
df = pd.DataFrame(
9+
{
10+
0: [[0, 1, 2], "foo", [], [3, 4]],
11+
1: 1,
12+
2: [["a", "b", "c"], np.nan, [], ["d", "e"]],
13+
}
14+
)
15+
16+
result = df.explode(0)
17+
print(result)

0 commit comments

Comments
 (0)