Skip to content

Commit 7e3ad12

Browse files
committed
Add ASV benchmark
1 parent 7efefb9 commit 7e3ad12

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

asv_bench/benchmarks/frame_methods.py

+18
Original file line numberDiff line numberDiff line change
@@ -512,3 +512,21 @@ def time_nlargest(self, keep):
512512

513513
def time_nsmallest(self, keep):
514514
self.df.nsmallest(100, 'A', keep=keep)
515+
516+
class Describe(object):
517+
518+
goal_time = 0.2
519+
520+
def setup(self):
521+
np.random.seed(123)
522+
self.df = DataFrame({
523+
'a': np.random.randint(0, 100, int(1e6)),
524+
'b': np.random.randint(0, 100, int(1e6)),
525+
'c': np.random.randint(0, 100, int(1e6))
526+
})
527+
528+
def time_series_describe(self):
529+
self.df['a'].describe()
530+
531+
def time_dataframe_describe(self):
532+
self.df.describe()

0 commit comments

Comments
 (0)