Skip to content

Commit e16418a

Browse files
add code sample for pandas-dev#35843
1 parent 2c4db07 commit e16418a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

bisect/35843.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import pandas as pd
2+
3+
print(pd.__version__)
4+
5+
values = [
6+
pd.Timestamp("2012-05-01T01:00:00.000000"),
7+
pd.Timestamp("2016-05-01T01:00:00.000000"),
8+
]
9+
arr = pd.arrays.SparseArray(values)
10+
print(arr)
11+
12+
ser = pd.Series(arr)
13+
print(ser)

0 commit comments

Comments
 (0)