Skip to content

Commit 3fc4ca6

Browse files
add code sample for pandas-dev#35858
1 parent 4626252 commit 3fc4ca6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

bisect/35858.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import pandas
2+
import pandas.testing as tm
3+
4+
print(pandas.__version__)
5+
6+
date = pandas.Timestamp("2000")
7+
x = pandas.DataFrame([["a", date, 1],], columns=["a", "b", "c"]).set_index(["a", "b"])[
8+
"c"
9+
]
10+
print(x)
11+
12+
res = x.loc[:, [date]]
13+
print(res)
14+
15+
tm.assert_series_equal(res, x)

0 commit comments

Comments
 (0)