Skip to content
Merged
Show file tree
Hide file tree
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
14 changes: 1 addition & 13 deletions asv_bench/benchmarks/indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import numpy as np
import pandas.util.testing as tm
from pandas import (Series, DataFrame, Panel, MultiIndex,
from pandas import (Series, DataFrame, MultiIndex,
Int64Index, UInt64Index, Float64Index,
IntervalIndex, CategoricalIndex,
IndexSlice, concat, date_range)
Expand Down Expand Up @@ -277,18 +277,6 @@ def time_get_indexer_list(self, index):
self.data.get_indexer(self.cat_list)


class PanelIndexing(object):

def setup(self):
with warnings.catch_warnings(record=True):
self.p = Panel(np.random.randn(100, 100, 100))
self.inds = range(0, 100, 10)

def time_subset(self):
with warnings.catch_warnings(record=True):
self.p.ix[(self.inds, self.inds, self.inds)]


class MethodLookup(object):

def setup_cache(self):
Expand Down
28 changes: 1 addition & 27 deletions asv_bench/benchmarks/join_merge.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import warnings
import string

import numpy as np
import pandas.util.testing as tm
from pandas import (DataFrame, Series, Panel, MultiIndex,
from pandas import (DataFrame, Series, MultiIndex,
date_range, concat, merge, merge_asof)

try:
Expand Down Expand Up @@ -66,31 +65,6 @@ def time_concat_mixed_ndims(self, axis):
concat(self.mixed_ndims, axis=axis)


class ConcatPanels(object):

params = ([0, 1, 2], [True, False])
param_names = ['axis', 'ignore_index']

def setup(self, axis, ignore_index):
with warnings.catch_warnings(record=True):
panel_c = Panel(np.zeros((10000, 200, 2),
dtype=np.float32,
order='C'))
self.panels_c = [panel_c] * 20
panel_f = Panel(np.zeros((10000, 200, 2),
dtype=np.float32,
order='F'))
self.panels_f = [panel_f] * 20

def time_c_ordered(self, axis, ignore_index):
with warnings.catch_warnings(record=True):
concat(self.panels_c, axis=axis, ignore_index=ignore_index)

def time_f_ordered(self, axis, ignore_index):
with warnings.catch_warnings(record=True):
concat(self.panels_f, axis=axis, ignore_index=ignore_index)


class ConcatDataFrames(object):

params = ([0, 1], [True, False])
Expand Down
55 changes: 0 additions & 55 deletions asv_bench/benchmarks/panel_ctor.py

This file was deleted.

25 changes: 0 additions & 25 deletions asv_bench/benchmarks/panel_methods.py

This file was deleted.