Skip to content

Commit 2bebc18

Browse files
committed
MAINT: Remove datetool imports from scripts
1 parent 6363e59 commit 2bebc18

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

scripts/bench_join.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
a = np.arange(n, dtype=np.int64)
1313
b = np.arange(n * pct_overlap, n * (1 + pct_overlap), dtype=np.int64)
1414

15-
dr1 = DatetimeIndex('1/1/2000', periods=n, offset=datetools.Minute())
15+
dr1 = DatetimeIndex('1/1/2000', periods=n, offset=offsets.Minute())
1616
dr2 = DatetimeIndex(
17-
dr1[int(pct_overlap * n)], periods=n, offset=datetools.Minute(2))
17+
dr1[int(pct_overlap * n)], periods=n, offset=offsets.Minute(2))
1818

1919
aobj = a.astype(object)
2020
bobj = b.astype(object)

scripts/groupby_speed.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from __future__ import print_function
22
from pandas import *
33

4-
rng = DatetimeIndex('1/3/2011', '11/30/2011', offset=datetools.Minute())
4+
rng = DatetimeIndex('1/3/2011', '11/30/2011', offset=offsets.Minute())
55

66
df = DataFrame(np.random.randn(len(rng), 5), index=rng,
77
columns=list('OHLCV'))
88

9-
rng5 = DatetimeIndex('1/3/2011', '11/30/2011', offset=datetools.Minute(5))
9+
rng5 = DatetimeIndex('1/3/2011', '11/30/2011', offset=offsets.Minute(5))
1010
gp = rng5.asof
1111
grouped = df.groupby(gp)
1212

scripts/hdfstore_panel_perf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
panel = Panel(np.random.randn(i, j, k),
88
items=[rands(10) for _ in range(i)],
99
major_axis=DatetimeIndex('1/1/2000', periods=j,
10-
offset=datetools.Minute()),
10+
offset=offsets.Minute()),
1111
minor_axis=[rands(10) for _ in range(k)])
1212

1313

0 commit comments

Comments
 (0)