Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion asv_bench/benchmarks/attrs_caching.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .pandas_vb_common import *
import numpy as np
from pandas import DataFrame

try:
from pandas.util import cache_readonly
Expand All @@ -7,9 +8,11 @@


class DataFrameAttributes(object):

goal_time = 0.2

def setup(self):
np.random.seed(1234)
self.df = DataFrame(np.random.randn(10, 6))
self.cur_index = self.df.index

Expand All @@ -21,6 +24,7 @@ def time_set_index(self):


class CacheReadonly(object):

goal_time = 0.2

def setup(self):
Expand Down