Skip to content

Commit

Permalink
Merge branch 'master' into cat_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dwillmer authored Jul 19, 2017
2 parents 5e8e23b + 031d7a9 commit 3cc5c24
Show file tree
Hide file tree
Showing 70 changed files with 624 additions and 2,151 deletions.
8 changes: 8 additions & 0 deletions asv_bench/benchmarks/sparse.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from itertools import repeat

from .pandas_vb_common import *
import scipy.sparse
from pandas import SparseSeries, SparseDataFrame
Expand Down Expand Up @@ -27,6 +29,12 @@ class sparse_frame_constructor(object):
def time_sparse_frame_constructor(self):
SparseDataFrame(columns=np.arange(100), index=np.arange(1000))

def time_sparse_from_scipy(self):
SparseDataFrame(scipy.sparse.rand(1000, 1000, 0.005))

def time_sparse_from_dict(self):
SparseDataFrame(dict(zip(range(1000), repeat([0]))))


class sparse_series_from_coo(object):
goal_time = 0.2
Expand Down
6 changes: 3 additions & 3 deletions asv_bench/vbench_to_asv.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def translate_module(target_module):
l_vars = {}
exec('import ' + target_module) in g_vars

print target_module
print(target_module)
module = eval(target_module, g_vars)

benchmarks = []
Expand Down Expand Up @@ -157,7 +157,7 @@ def translate_module(target_module):
mod = os.path.basename(module)
if mod in ['make.py', 'measure_memory_consumption.py', 'perf_HEAD.py', 'run_suite.py', 'test_perf.py', 'generate_rst_files.py', 'test.py', 'suite.py']:
continue
print
print mod
print('')
print(mod)

translate_module(mod.replace('.py', ''))
22 changes: 0 additions & 22 deletions bench/alignment.py

This file was deleted.

14 changes: 0 additions & 14 deletions bench/bench_dense_to_sparse.py

This file was deleted.

56 changes: 0 additions & 56 deletions bench/bench_get_put_value.py

This file was deleted.

66 changes: 0 additions & 66 deletions bench/bench_groupby.py

This file was deleted.

85 changes: 0 additions & 85 deletions bench/bench_join_panel.py

This file was deleted.

89 changes: 0 additions & 89 deletions bench/bench_khash_dict.py

This file was deleted.

Loading

0 comments on commit 3cc5c24

Please sign in to comment.