Skip to content

Commit 5da4e2c

Browse files
code sample for pandas-dev#46877
1 parent 31f7201 commit 5da4e2c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

bisect/46877.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# BUG: pd.date_range not factoring in nanoseconds in freq #46877
2+
3+
import pandas as pd
4+
5+
print(pd.__version__)
6+
7+
end = pd.Timestamp("1970-01-01 00:00:00")
8+
offset = pd.DateOffset(**{"hours": 10, "nanoseconds": 3})
9+
result = end + offset
10+
print(result)
11+
12+
expected = pd.Timestamp("1970-01-01 10:00:00.000000003")
13+
14+
assert not result == expected, result

0 commit comments

Comments
 (0)