We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04b628f commit 369df07Copy full SHA for 369df07
asv_bench/benchmarks/attrs_caching.py
@@ -1,4 +1,5 @@
1
-from .pandas_vb_common import *
+import numpy as np
2
+from pandas import DataFrame
3
4
try:
5
from pandas.util import cache_readonly
@@ -7,9 +8,11 @@
7
8
9
10
class DataFrameAttributes(object):
11
+
12
goal_time = 0.2
13
14
def setup(self):
15
+ np.random.seed(1234)
16
self.df = DataFrame(np.random.randn(10, 6))
17
self.cur_index = self.df.index
18
@@ -21,6 +24,7 @@ def time_set_index(self):
21
24
22
25
23
26
class CacheReadonly(object):
27
28
29
30
0 commit comments