Skip to content

Commit 1a121e6

Browse files
add code sample for pandas-dev#35830
1 parent 2521f05 commit 1a121e6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bisect/35830.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import pandas as pd
2+
3+
print(pd.__version__)
4+
5+
df = pd.DataFrame([[10.1]], columns=pd.DatetimeIndex(["8/21/2020 12:00:00 AM"]))
6+
key = df.columns[0].date()
7+
8+
res = df[key]
9+
print(res)

0 commit comments

Comments
 (0)